function purl_menu in Persistent URL 7
Same name and namespace in other branches
- 6 purl.module \purl_menu()
Implements hook_menu().
File
- ./
purl.module, line 51
Code
function purl_menu() {
$items = array();
$items['admin/config/search/purl'] = array(
'title' => 'Persistent URL',
'type' => MENU_NORMAL_ITEM,
'description' => 'Settings for persistent url.',
'position' => 'left',
'weight' => -5,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'purl_settings_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'purl.admin.inc',
);
$items['admin/config/search/purl/settings'] = array(
'title' => 'Settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'purl_settings_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'purl.admin.inc',
'weight' => 1,
);
$items['admin/config/search/purl/list'] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'Modifiers',
'page callback' => 'purl_admin',
'access arguments' => array(
'administer site configuration',
),
'file' => 'purl.admin.inc',
'weight' => 2,
);
$items['admin/config/search/purl/types'] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'Types',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'purl_types_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'purl.admin.inc',
'weight' => 3,
);
return $items;
}