function alerts_menu

6.x alerts.module alerts_menu()

File

modules/alerts/alerts.module, line 14
module file for Alerts

Code

function alerts_menu() {
  $items = array();

  $items ["alerts"] = array(
    "title" => "Alerts%ALERTS_ADVISEE_ALERTS_COUNT%",
    "page_callback" => "fp_render_form",
    "page_arguments" => array("alerts_advisees_alerts_form"),
    "access_arguments" => array("view_advisee_alerts"),
    "tab_family" => "alerts",
    "weight" => 10,
    "type" => MENU_TYPE_TAB,
    "page_settings" => array(
      "menu_links" => array(
        0 => array(
          "text" => "Dashboard",
          "path" => "main",
        ),
      ),
    ),
  );


  $items ["advisee-activities"] = array(
    "title" => "Advisee Activities",
    "page_callback" => "alerts_display_advisee_activities_page",
    "access_arguments" => array('can_view_advisee_activity_records'),
    "type" => MENU_TYPE_TAB,
    'tab_family' => 'alerts',
    'weight' => 20,
    "page_settings" => array(
      "menu_links" => array(
        0 => array(
          "text" => "Dashboard",
          "path" => "main",
        ),
      ),
    ),
  );


  // Settings screen
  $items ["admin/config/alerts-settings"] = array(
    "title" => "Alerts settings",
    "description" => "Configure settings for Alerts in the system",
    "page_callback" => "fp_render_form",
    "page_arguments" => array("alerts_settings_form", "system_settings"),
    "access_arguments" => array("administer_alerts"),
    "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/bell.png",
    ),
    "type" => MENU_TYPE_NORMAL_ITEM,
    "tab_parent" => "admin-tools/admin",
  );



  return $items;
}