function advise_menu
Search API
7.x advise.module | advise_menu() |
6.x advise.module | advise_menu() |
4.x advise.module | advise_menu() |
5.x advise.module | advise_menu() |
File
- modules/
advise/ advise.module, line 4
Code
function advise_menu() {
$items = array();
$items ["admin-tools/toggle-draft"] = array(
"title" => "Toggle Draft Mode",
"page_callback" => "fp_render_form",
"page_arguments" => array("advise_toggle_draft_form"),
"access_arguments" => array("toggle_draft"),
"page_settings" => array(
"menu_links" => array(
0 => array(
"text" => "Back to Main",
"path" => "main",
),
),
),
"type" => MENU_TYPE_TAB,
"tab_parent" => "main",
);
$items ["admin-tools/clear-advising-cache"] = array(
"title" => "Clear advising cache",
"page_callback" => "advise_perform_clear_advising_cache",
"access_arguments" => array("toggle_draft"),
"type" => MENU_TYPE_NORMAL_ITEM,
);
$items ["view"] = array(
"title" => "View",
"page_callback" => "advise_display_view",
"page_arguments" => array("view"),
"access_callback" => "advise_can_access_view",
"tab_family" => "system",
"page_settings" => array(
"display_currently_advising" => TRUE,
"display_greeting" => TRUE,
"page_has_search" => TRUE,
),
"weight" => 30,
"type" => MENU_TYPE_TAB,
);
$items ["view/print"] = array(
"title" => "View",
"page_callback" => "advise_display_view",
"page_arguments" => array("view"),
"access_callback" => TRUE,
"page_settings" => array(
"display_currently_advising" => TRUE,
"bool_print" => TRUE,
"screen_mode" => "not_advising",
),
"type" => MENU_TYPE_CALLBACK,
);
$items ["what-if"] = array(
"title" => "What If?",
"page_callback" => "advise_display_view",
"page_arguments" => array("what-if"),
"access_callback" => "advise_can_access_view",
"tab_family" => "system",
"page_settings" => array(
"display_currently_advising" => TRUE,
"display_greeting" => TRUE,
"page_has_search" => TRUE,
),
"weight" => 60,
"type" => MENU_TYPE_TAB,
);
$items ["what-if/print"] = array(
"title" => "What If?",
"page_callback" => "advise_display_view",
"page_arguments" => array("what-if"),
"access_callback" => TRUE,
"page_settings" => array(
"display_currently_advising" => TRUE,
"bool_print" => TRUE,
"screen_mode" => "not_advising",
),
"type" => MENU_TYPE_CALLBACK,
);
$items ["history"] = array(
"title" => "History",
"page_callback" => "advise_display_history",
"access_callback" => "advise_can_access_view",
"tab_family" => "system",
"page_settings" => array(
"display_currently_advising" => TRUE,
"display_greeting" => TRUE,
"page_has_search" => TRUE,
),
"weight" => 40,
"type" => MENU_TYPE_TAB,
"file" => menu_get_module_path("advise") . "/advise.history.inc",
);
// My popups....
$items ["advise/popup-display-summary"] = array(
"title" => "Advising Summary",
"page_callback" => "advise_popup_display_summary",
"access_callback" => "advise_user_can_view_advising_session_access_callback",
"page_settings" => array(
"page_is_popup" => TRUE,
"page_hide_report_error" => TRUE,
"bool_print" => TRUE,
),
"type" => MENU_TYPE_CALLBACK,
"file" => menu_get_module_path("advise") . "/advise.history.inc",
);
$items ["advise/popup-change-term"] = array(
"title" => "Change advising term",
"page_callback" => "advise_display_popup_change_term",
"access_arguments" => array("can_advise_students"),
"page_settings" => array(
"page_is_popup" => TRUE,
"page_hide_report_error" => TRUE,
),
"type" => MENU_TYPE_CALLBACK,
);
$items ["advise/popup-change-track"] = array(
"title" => "Change advising track",
"page_callback" => "advise_display_popup_change_track",
"access_arguments" => array("access_logged_in_content"),
"page_settings" => array(
"page_is_popup" => TRUE,
"page_hide_report_error" => TRUE,
),
"type" => MENU_TYPE_CALLBACK,
);
$items ["advise/popup-course-description"] = array(
"title" => "Description",
"page_callback" => "advise_display_popup_course_description",
"access_callback" => TRUE,
"page_settings" => array(
"page_is_popup" => TRUE,
"page_hide_report_error" => TRUE,
),
"weight" => 10,
);
$items ["advise/popup-substitute-selected"] = array(
"title" => "Substitute",
"page_callback" => "advise_display_popup_substitute_selected",
"access_arguments" => array("can_substitute"),
"page_settings" => array(
"page_is_popup" => TRUE,
"page_hide_report_error" => TRUE,
),
"weight" => 10,
);
$items ["advise/popup-group-select"] = array(
"title" => "Select",
"page_callback" => "advise_display_popup_group_select",
"access_callback" => TRUE,
"page_settings" => array(
"page_is_popup" => TRUE,
"page_hide_report_error" => TRUE,
),
"weight" => 10,
);
// Toolbox...
$items ["advise/popup-toolbox/transfers"] = array(
"title" => "Transfers",
"page_callback" => "advise_display_popup_toolbox_transfers",
"access_arguments" => array("can_substitute"),
"page_settings" => array(
"page_is_popup" => TRUE,
"page_hide_report_error" => TRUE,
),
"weight" => 10,
"type" => MENU_TYPE_TAB,
"tab_family" => "advise-toolbox",
"file" => menu_get_module_path("advise") . "/advise.toolbox.inc",
);
$items ["advise/popup-toolbox/substitutions"] = array(
"title" => "Substitutions",
"page_callback" => "advise_display_popup_toolbox_substitutions",
"access_arguments" => array("can_substitute"),
"page_settings" => array(
"page_is_popup" => TRUE,
"page_hide_report_error" => TRUE,
),
"weight" => 20,
"type" => MENU_TYPE_TAB,
"tab_family" => "advise-toolbox",
"file" => menu_get_module_path("advise") . "/advise.toolbox.inc",
);
$items ["advise/popup-toolbox/moved"] = array(
"title" => "Moved",
"page_callback" => "advise_display_popup_toolbox_moved",
"access_arguments" => array("can_substitute"),
"page_settings" => array(
"page_is_popup" => TRUE,
"page_hide_report_error" => TRUE,
),
"weight" => 30,
"type" => MENU_TYPE_TAB,
"tab_family" => "advise-toolbox",
"file" => menu_get_module_path("advise") . "/advise.toolbox.inc",
);
$items ["advise/popup-toolbox/courses"] = array(
"title" => "Courses",
"page_callback" => "advise_display_popup_toolbox_courses",
"access_arguments" => array("can_substitute"),
"page_settings" => array(
"page_is_popup" => TRUE,
"page_hide_report_error" => TRUE,
),
"weight" => 40,
"type" => MENU_TYPE_TAB,
"tab_family" => "advise-toolbox",
"file" => menu_get_module_path("advise") . "/advise.toolbox.inc",
);
return $items;
}