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 66
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(
"menu_icon" => fp_get_module_path('student_search') . "/icons/database_gear.png",
"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/autocomplete-student/%'] = array(
'page_callback' => 'student_search_ajax_autocomplete_student',
'page_arguments' => array(2),
'access_arguments' => array('access_logged_in_content'),
'type' => MENU_TYPE_CALLBACK,
);
$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_NORMAL_ITEM,
"weight" => 20,
);
$items ["student-select"] = array(
"page_callback" => "student_search_student_select_switchboard",
"access_callback" => "search_user_can_search_for_some_advisees",
"type" => MENU_TYPE_NORMAL_ITEM,
"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_TAB,
"tab_family" => "student_search",
"page_settings" => array(
"screen_mode" => "not_advising",
),
"weight" => 10,
);
$items ["student-search/search"] = array(
"title" => t("Search"),
"page_callback" => "fp_render_form",
"page_arguments" => array("student_search_search_form"),
"access_arguments" => array("display_search_subtab"),
"type" => MENU_TYPE_TAB,
"tab_family" => "student_search",
"page_settings" => array(
"screen_mode" => "not_advising",
"page_has_search" => TRUE,
),
"weight" => 30,
);
return $items;
}