I'm trying to add a new link to the Main Menu from inside my module.
Currently, this code:
function custom_food_orders_menu() {
$items['order_food'] = array(
'title' => 'Order Food',
'page callback' => 'page_creator_function',
'access callback' => TRUE,
'menu_name=' => 'main-menu',
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
...adds the 'order food' link to the 'Navigation' menu. I tried setting the menu name to main-menu, but that does not seem to work.
Is this a limitation in Drupal? If it is, I'll adjust by creating a link to that page manually.