I currently have a custom menu item that was created with the code below and it works great:
function myModule_menu(){
$items = array();
$items['myModule'] = array(
'title' => 'Business Owner Dashboard',
'page callback' => '_custom_page',
'access arguments' => array('use_business_dashboard'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
The thing is I want to create multiple menu items for multiple roles, not just one. I assume I can used a switch case somehow, but I am unsure how and cannot find any documentation on the topic.
Just to clarify, I want to use the same myModule_menu() function to set up the "Business Owner Dashboard" as well as another menu item called "Referrals" with different "page callback", "access arguments", etc. Any help on this topic would be greatly appreciated!