You are here

function pagerer_menu in Pagerer 7

Implements hook_menu().

File

./pagerer.module, line 38
Pagerer

Code

function pagerer_menu() {
  $items = array();
  $items[_PAGERER_CONFIG_PATH] = array(
    'title' => 'Pagerer',
    'description' => 'Configure Pagerer.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'pagerer_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'pagerer.admin.inc',
  );
  $items[_PAGERER_CONFIG_PATH . '/add'] = array(
    'title' => 'Add preset',
    'description' => 'Add a new preset pager.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'pagerer_preset_add_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_ACTION | MENU_VISIBLE_IN_BREADCRUMB,
    'file' => 'pagerer.admin.inc',
  );
  $items[_PAGERER_CONFIG_PATH . '/edit/%'] = array(
    'title callback' => '_pagerer_preset_form_title',
    'title arguments' => array(
      5,
    ),
    'description' => 'Configure a preset pager.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'pagerer_preset_form',
      5,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK | MENU_VISIBLE_IN_BREADCRUMB,
    'file' => 'pagerer.admin.inc',
  );
  $items[_PAGERER_CONFIG_PATH . '/delete/%'] = array(
    'title' => 'Delete preset',
    'description' => 'Delete a preset pager.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'pagerer_preset_delete_form',
      5,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK | MENU_VISIBLE_IN_BREADCRUMB,
    'file' => 'pagerer.admin.inc',
  );
  $items[_PAGERER_CONFIG_PATH . '/edit/%/%'] = array(
    'title callback' => '_pagerer_preset_pane_form_title',
    'title arguments' => array(
      5,
      6,
    ),
    'description' => 'Configure preset pager panes.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'pagerer_pane_form',
      5,
      6,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK | MENU_VISIBLE_IN_BREADCRUMB,
    'file' => 'pagerer.admin.inc',
  );
  $items[_PAGERER_CONFIG_PATH . '/edit/%/%/reset'] = array(
    'title' => 'Reset pane theme',
    'title arguments' => array(
      5,
      6,
    ),
    'description' => 'Reset preset pager pane theme.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'pagerer_pane_theme_reset_form',
      5,
      6,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK | MENU_VISIBLE_IN_BREADCRUMB,
    'file' => 'pagerer.admin.inc',
  );
  return $items;
}