I have a hook:
function node_field_link_menu()
{
$items['order_food'] = array(
'title' => 'Products',
'page callback' => 'node_field_link_products_page',
'access callback' => TRUE,
'menu_name' => 'primary-links',
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
This gives me my menu item and I'm happy with it. The problem is, I want items UNDER this menu item, so I end up with:
- Products
- Product 1
- Product 2
- Product 3
- Product 4
I read that you can use "plid", but the problem is, in this context, I don't know what the PLID is, because I just created the parent. So I can't do this:
function node_field_link_menu()
{
$items['order_food/procuct1'] = array(
'title' => 'Product 1',
'page callback' => 'node_field_link_products_page1',
'access callback' => TRUE,
'menu_name' => 'primary-links',
'type' => MENU_NORMAL_ITEM,
'plid' => XXX?,
);
return $items;
}
So how can I add another menu item below a menu item I created in Drupal 6?