How to print node id in a block in a module? I have created a ctools jump menu in a block in a module. I need to get the node id for use in the links. How can I get the node id printed in the block?

Here is my code;

&lt;?php 

function boathood_block_info() {
$blocks = array();
$blocks['boathood_ABC'] = array(
'info' =&gt; t('Boathood Block'),
);
return $blocks;
}

 function boathood_block_view($delta = '') {
 $block = array();
switch ($delta) {
case 'boathood_ABC':
  $block['subject'] = '';
  $block['content'] = _boathood_BLOCK_ABC_CONTENT();
  break;
 }

  return $block;
  }

 function _boathood_BLOCK_ABC_CONTENT() {
$output = boathood_page();
 return $output;
 }

 function boathood_page() {
 global $user;
 ctools_include('ajax');  
 drupal_add_js($sample_style, 'setting');
 ctools_add_js('ctools-ajax-sample', 'ctools_ajax_sample');
 ctools_add_css('ctools-ajax-sample', 'ctools_ajax_sample');
 ctools_include('jump-menu');
 $form = drupal_get_form('boathood_jump_menu_form');
 $output .= drupal_render($form);
 return array('markup' =&gt; array('#markup' =&gt; $output));
 }

  function boathood_jump_menu_form() {

 $mynid = $node-&gt;nid;

 $url = url('node/' . $mynid);
 $url2 = url('node/' . $mynid);
 $url3 = url('node/' . $mynid);
$form_state = array();
$form = ctools_jump_menu(array(), $form_state, array($url =&gt;    t('one!'),$url2 =&gt; t('two'),$url3 =&gt; t('three')), array());
return $form;
}
You can get the ID of the current full-page node with menu_get_object:

$node = menu_get_object();
if ($node) {
  // Do something with $node-&gt;nid
}