function markbook_menu($may_cache) { $items = array(); if($may_cache) { $items[]=array( 'path' => 'markbook', 'title' => t('Markbook'), 'callback' => 'markbook_page', 'access' => user_access('access markbook'), 'type' => MENU_CALLBACK); //Take command of all /markbook URLs } else { $items[]=array( 'path' => 'markbook', 'title' => t('my markbook'), 'access' => user_access('edit own markbook')); //display "my markbook" item 'type' => MENU_DYNAMIC_ITEM, ); } return $items; }