function markbook_menu() { $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'), 'callback' => 'markbook_page', 'access' => user_access('edit own markbook'), 'type' => MENU_DYNAMIC_ITEM); //display "my markbook" item } return $items; }