How to add new item in menu_local? I'm using Drupal commons and I want to add new item next to View link, so I used hook_menu to create this.

function manage_child_menu() { 
  $items['node/%node/demo'] = array (
    'title' =&gt; 'Demo',
    'page callback' =&gt; 'node_page_view',
    'page arguments' =&gt; array(1),
    'access callback' =&gt; 'manage_child_auction_access',
    'access arguments' =&gt; array(1),
    'type' =&gt; MENU_LOCAL_TASK,
  );    
  return $items;
}


Well, it didn't work at all. Please help
In my case using hook_menu will never work. Then i have to use hook_menu_local_tasks_alter to make it work.
Here is how.

function manage_child_menu_local_tasks_alter(&amp;$data, $router_item, $root_path) {
   if ((arg(0) == 'node' || arg(0) == 'groups') &amp;&amp; arg(2) == '') {
   $nid = arg(1);
   $node = node_load($nid);
   if ($node-&gt;type == 'project_auction') {
     $link = menu_get_item("node/$nid/demo");
     $link['title'] = 'Auction List';
     $link['weight'] = 10;

     $data['tabs'][0]['output'][] = array(
       '#theme' =&gt; 'menu_local_task',
       '#link' =&gt; $link,
     );

     $data['tabs'][0]['count'] = $data['tabs']['0']['count'] + 1;
  }
 }
}