You are here

function purl_menu in Persistent URL 6

Same name and namespace in other branches
  1. 7 purl.module \purl_menu()

Implementation of hook_menu().

File

./purl.module, line 47

Code

function purl_menu() {
  $items = array();
  $items['admin/settings/purl'] = array(
    'type' => MENU_NORMAL_ITEM,
    'title' => 'Persistent URL',
    'description' => 'Settings for persistent url.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'purl_settings_form',
    ),
    'file' => 'purl.admin.inc',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer site configuration',
    ),
    'weight' => 10,
  );
  $items['admin/settings/purl/settings'] = array(
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'title' => 'Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'purl_settings_form',
    ),
    'file' => 'purl.admin.inc',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer site configuration',
    ),
    'weight' => 0,
  );
  $items['admin/settings/purl/list'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Modifiers',
    'page callback' => 'purl_admin',
    'file' => 'purl.admin.inc',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer site configuration',
    ),
    'weight' => 5,
  );
  $items['admin/settings/purl/types'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Types',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'purl_types_form',
    ),
    'file' => 'purl.admin.inc',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer site configuration',
    ),
    'weight' => 11,
  );
  return $items;
}