How to get node id in drupal 7 -
i developing drupal 7 module. , have added 2 field "teaser" , "doc" custom content type.
when user create node using content type, he/she adds doc , save node. after saving node image created first page of doc(creating teaser doc) , saved folder using imagemagick lib.
and want node ids link images node. how can node id.
please help!
you should have used node_save($node) method save node. can node id $node object doing this:
$nid = $node->nid;
Comments
Post a Comment