function engagements_menu

7.x engagements.module engagements_menu()
6.x engagements.module engagements_menu()

Implement hook_menu

File

modules/engagements/engagements.module, line 15
This is the primary module file for the engagements module.

Code

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

  $items ["engagements"] = array(
    "title" => t("Engagements"),
    "page_callback" => "engagements_display_main",
    "access_arguments" => array("can_view_engagements"),
    "tab_family" => "system",
    "page_settings" => array(
      "display_currently_advising" => TRUE,
    ),
    "weight" => 20,
    "type" => MENU_TYPE_TAB,
  );


  $items ['engagements-track/%/%/pixel.gif'] = array(
    'page_callback' => 'engagements_handle_tracking_pixel_request',
    'page_arguments' => array(1, 2),
    'access_callback' => TRUE,
    'type' => MENU_TYPE_CALLBACK,
  );


  $items ['engagements-handle-incoming-sms'] = array(
    'page_callback' => 'engagements_handle_incoming_sms',
    'access_callback' => TRUE,
    'type' => MENU_TYPE_CALLBACK,
  );




  $items ["admin/config/imap"] = array(
    "title" => "Engagements - IMAP settings",
    "description" => "Configure IMAP settings for Engagements",
    "page_callback" => "fp_render_form",
    "page_arguments" => array("engagements_imap_settings_form", "system_settings"),
    "access_arguments" => array("administer_engagements"),
    "page_settings" => array(
      "menu_icon" => fp_get_module_path('system') . "/icons/cog.png",
      "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 ["admin/config/sms"] = array(
    "title" => "Engagements - SMS settings",
    "description" => "Configure SMS settings for Engagements",
    "page_callback" => "fp_render_form",
    "page_arguments" => array("engagements_sms_settings_form", "system_settings"),
    "access_arguments" => array("administer_engagements"),
    "page_settings" => array(
      "menu_icon" => fp_get_module_path('system') . "/icons/cog.png",
      "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 ["admin-tools/mass-sms"] = array(
    "title" => "Send Mass Text Messages",
    "description" => "Send a text message to multiple recipients.",
    "page_callback" => "fp_render_form",
    "page_arguments" => array("engagements_mass_sms_form"),
    "access_arguments" => array("can_send_mass_sms"),
    "page_settings" => array(
      "menu_icon" => fp_get_module_path('system') . "/icons/transmit_go.png",
      "menu_links" => array(
        0 => array(
          "text" => "Admin Tools",
          "path" => "admin-tools",
          "query" => "de_catalog_year=%DE_CATALOG_YEAR%",
        ),
      ),
    ),
    "type" => MENU_TYPE_NORMAL_ITEM,
  );




  $items ["advisee-engagements"] = array(
    "title" => "Engagements Received%ENGAGEMENTS_ADVISEE_ALERTS_COUNT%",
    "page_callback" => "engagements_display_advisee_engagements_page",
    "access_arguments" => array('can_view_engagements'),
    "type" => MENU_TYPE_TAB,
    'tab_family' => 'alerts',
    'weight' => 15,
    "page_settings" => array(
      "menu_links" => array(
        0 => array(
          "text" => "Dashboard",
          "path" => "main",
        ),
      ),
    ),
  );






  return $items;
}