function masquerade_menu

7.x masquerade.module masquerade_menu()
6.x masquerade.module masquerade_menu()

Implementation of hook_menu

File

modules/masquerade/masquerade.module, line 15
The masquerade module, which allows admin users to impersonate other users.

Code

function masquerade_menu() {

  $items = array();

  $items ["admin-tools/masquerade"] = array(
    "title" => "Masquerade as another user",
    "page_callback" => "fp_render_form",
    "page_arguments" => array("masquerade_form"),
    "access_arguments" => array("access_masquerade"),
    "page_settings" => array(
      "menu_links" => array(
        0 => array(
          "text" => t("Admin Tools"),
          "path" => "admin-tools",
          "query" => "de_catalog_year=%DE_CATALOG_YEAR%",
        ),
      ),
      "menu_icon" => fp_get_module_path('masquerade') . "/icons/mask.png",
    ),
    "type" => MENU_TYPE_NORMAL_ITEM,
    'weight' => 40,
  );


  $items ["masquerade"] = array(
    "page_callback" => "masquerade_perform_masquerade",
    "access_arguments" => array("access_masquerade"),
    "type" => MENU_TYPE_CALLBACK,
  );


  return $items;
}