nid for custom form module I have created a custom module(a simple form) in drupal 7 using  https://www.drupal.org/node/717722 , i have successfully installed newly created module and able to save the form data. But i need an nid for this module which is being use by other module to perform series of tasks, i have been searching a lot about how can i found the nid of custom module ,but none of solution worked , also i have searched in the database table , other contents like webform , basic page and articles are there in database with there nid's but the newly created module's nid is not there ,can any one please help how can i find the nid of custom module and if there is no such nid then how can i set and nid for newly created module.

thanks in advance
Forms don't have nid. Only nodes are having nid (node_id) in drupal. If you are displaying the form on any node page, suppose on http://example.com/node/123. Here 123 would be the node id and you can fetch it in form by 

if (arg(0) == 'node' &amp;&amp; is_numeric(arg(1))) {
  $nid = arg(1);
}


And if you want this $nid to be passed through different form states, add this as form field 

$form['nid'] = array('#type' =&gt; 'value', '#value' =&gt; $nid);