function audit_menu
Search API
6.x audit.module | audit_menu() |
Implementation of hook_menu
File
- modules/
audit/ audit.module, line 12 - This is the Audit module, which provides functionality relating to degree audits.
Code
function audit_menu() {
$items = array();
$items ["audit"] = array(
"title" => "Audit",
"page_callback" => "audit_display_audit",
"access_callback" => "audit_can_access_audit", //should the audit tab show up right now, for this user?
"tab_family" => "system",
"page_settings" => array(
"display_currently_advising" => TRUE,
),
"weight" => 100,
"type" => MENU_TYPE_TAB,
);
// Settings screen
$items ["admin/config/audit-settings"] = array(
"title" => "Audit settings",
"description" => "Configure settings for the Audit tab",
"page_callback" => "fp_render_form",
"page_arguments" => array("audit_settings_form", "system_settings"),
"access_arguments" => array("administer_audit"),
"page_settings" => array(
"page_hide_report_error" => TRUE,
"menu_links" => array(
0 => array(
"text" => "Admin Console",
"path" => "admin-tools/admin",
),
),
"menu_icon" => fp_get_module_path('system') . "/icons/report.png",
),
"type" => MENU_TYPE_NORMAL_ITEM,
"tab_parent" => "admin-tools/admin",
);
// The edit-approval popup...
// audit/popup-edit-approval/TYPE/STUDENT CWID
$items ["audit/popup-edit-approval/%/%"] = array(
"title" => "Edit Approval",
"page_callback" => "fp_render_form",
"page_arguments" => array("audit_popup_edit_approval_form", "normal", 2, 3),
"access_arguments" => array("edit_audit_approvals"),
"page_settings" => array(
"page_is_popup" => TRUE,
"page_hide_report_error" => TRUE,
),
"type" => MENU_TYPE_CALLBACK,
);
return $items;
}