I am working with Drupal 7. I have created a custom module that supplies several menu items using hook_menu. I am adding one of these menu items to the main menu:
$items['my-chapter'] = array( 'title' => 'My Chapter', 'page callback' => 'mymodule_my_chapter', 'file' => 'includes/pages.inc', 'menu_name' => 'main-menu', 'weight' => '110', 'access callback' => TRUE, 'type' => MENU_NORMAL_ITEM, );
Adding the menu item to the main menu works fine using this code. But I have a secondary menu that also needs this link. Is there a way to add it to another menu in addition to the main menu I'm already adding it to? Adding another $items['my-chapter'] will obviously just overwrite the previous one and the 'menu_name' only takes a single string.
Can anyone shed some light on how/if this can be done? Thanks.