You are here

function popup_ui_menu in Popup 7

Same name and namespace in other branches
  1. 8 modules/popup_ui/popup_ui.module \popup_ui_menu()
  2. 7.x modules/popup_ui/popup_ui.module \popup_ui_menu()
  3. 6.x modules/popup_ui/popup_ui.module \popup_ui_menu()

Implementation of hook_menu

File

modules/popup_ui/popup_ui.module, line 52

Code

function popup_ui_menu() {
  return array(
    'admin/config/user-interface/popup/settings' => array(
      'title' => 'Global settings',
      'type' => MENU_DEFAULT_LOCAL_TASK,
    ),
    'admin/config/user-interface/popup/formats' => array(
      'access arguments' => array(
        'administer popup elements',
      ),
      'description' => 'Manage popup formats available to Views and CCK',
      'file' => 'includes/popup_ui.admin.inc',
      'page arguments' => array(
        'popup_ui_form_formatters',
      ),
      'page callback' => 'drupal_get_form',
      'title' => 'Formats',
      'type' => MENU_LOCAL_TASK,
      'weight' => 1,
    ),
    'admin/config/user-interface/popup/formats/delete' => array(
      'access arguments' => array(
        'administer popup elements',
      ),
      'file' => 'includes/popup_ui.admin.inc',
      'page callback' => 'popup_ui_delete_format',
      'type' => MENU_CALLBACK,
    ),
    'admin/config/user-interface/popup/formats/whipe' => array(
      'access arguments' => array(
        'administer popup elements',
      ),
      'file' => 'includes/popup_ui.admin.inc',
      'page callback' => 'popup_ui_whipe_formats',
      'type' => MENU_CALLBACK,
    ),
    'admin/config/user-interface/popup/formats/reset' => array(
      'access arguments' => array(
        'administer popup elements',
      ),
      'file' => 'includes/popup_ui.admin.inc',
      'page callback' => 'popup_ui_reset',
      'type' => MENU_CALLBACK,
    ),
  );
}