Drupal - how to add add same page to two menus?

Posted by bert on Stack Overflow See other posts from Stack Overflow or by bert
Published on 2010-04-14T16:27:31Z Indexed on 2010/04/14 16:33 UTC
Read the original article Hit count: 173

Filed under:
|
|

How can I add same callback to 2 different menus?

function my_callback_menu(){
  $items = array();
  $items['my_callback'] = array(
    'title'            => t('My title'),    
    'menu_name'        => 'menu-my-menu',   
        'page callback'    => 'my_callback',         
        'access arguments' => array('access content'),            
  );
  return $items;
}

© Stack Overflow or respective owner

Related posts about drupal

Related posts about menu