function student_search_menu
Search API
7.x student_search.module | student_search_menu() |
6.x student_search.module | student_search_menu() |
4.x student_search.module | student_search_menu() |
5.x student_search.module | student_search_menu() |
File
- modules/
student_search/ student_search.module, line 4
Code
function student_search_menu() {
$items = array();
$items ["admin/config/student-search-settings"] = array(
"title" => "Student Search settings",
"description" => "Configure settings for the Student Search function",
"page_callback" => "fp_render_form",
"page_arguments" => array("student_search_settings_form", "system_settings"),
"access_arguments" => array("administer_student_search"),
"page_settings" => array(
"page_has_search" => FALSE,
"menu_icon" => fp_get_module_path('student_search') . "/icons/database_gear.png",
"page_banner_is_link" => TRUE,
"page_hide_report_error" => TRUE,
"menu_links" => array(
0 => array(
"text" => "Admin Console",
"path" => "admin-tools/admin",
"query" => "de_catalog_year=%DE_CATALOG_YEAR%",
),
),
),
"type" => MENU_TYPE_NORMAL_ITEM,
"tab_parent" => "admin-tools/admin",
);
$items ["student-search"] = array(
"title" => t("Advisees"),
"page_callback" => "student_search_subtab_switchboard",
"access_callback" => "search_user_can_search_for_some_advisees",
"type" => MENU_TYPE_TAB,
"tab_family" => "system",
"page_settings" => array(
"page_has_search" => TRUE,
),
"weight" => 20,
);
$items ["student-search/my-advisees"] = array(
"title" => t("My Advisees"),
"page_callback" => "student_search_display_my_advisees",
"access_arguments" => array("display_my_advisees_subtab"),
"type" => MENU_TYPE_SUB_TAB,
"tab_family" => "student_search",
"tab_parent" => "student-search",
"page_settings" => array(
"display_currently_advising" => TRUE,
"display_greeting" => TRUE,
"screen_mode" => "not_advising",
"page_has_search" => TRUE,
),
"weight" => 10,
);
$items ["student-search/my-majors"] = array(
"title" => t("My Majors"),
"page_callback" => "student_search_display_my_majors",
"access_arguments" => array("display_my_majors_subtab"),
"type" => MENU_TYPE_SUB_TAB,
"tab_family" => "student_search",
"tab_parent" => "student-search",
"page_settings" => array(
"display_currently_advising" => TRUE,
"display_greeting" => TRUE,
"screen_mode" => "not_advising",
"page_has_search" => TRUE,
),
"weight" => 20,
);
$items ["student-search/majors-search"] = array(
"title" => t("Majors"),
"page_callback" => "student_search_display_majors_search",
"access_arguments" => array("display_majors_subtab"),
"type" => MENU_TYPE_SUB_TAB,
"tab_family" => "student_search",
"tab_parent" => "student-search",
"page_settings" => array(
"display_currently_advising" => TRUE,
"display_greeting" => TRUE,
"screen_mode" => "not_advising",
"page_has_search" => TRUE,
),
"weight" => 25,
);
$items ["student-search/search"] = array(
"title" => t("Search"),
"page_callback" => "student_search_display_search",
"access_arguments" => array("display_search_subtab"),
"type" => MENU_TYPE_SUB_TAB,
"tab_family" => "student_search",
"tab_parent" => "student-search",
"page_settings" => array(
"display_currently_advising" => TRUE,
"display_greeting" => TRUE,
"screen_mode" => "not_advising",
"page_has_search" => TRUE,
),
"weight" => 30,
);
return $items;
}