title: Drupal node_save no longer returns $nid, so how do I get it?
body: <p>I have code like this:</p>
  
  <pre><code>... setup $issue object ...
  $node = node_save($issue);
  
  print_r($node);
  </code></pre>
  
  <p>The node is created successfully, and everything works fine...but nothing it returned from save_node().  Older docs indicate that it returns $nid.  Several discussions and tickets indicate that in recent Drupal versions the node object is returned, but I get nothing back (and $node->nid is empty).</p>
  
  <p>So, how do I find out the nid of the newly created node?</p>