function views_natural_sort_menu in Views Natural Sort 6
Same name and namespace in other branches
- 7.2 views_natural_sort.module \views_natural_sort_menu()
- 7 views_natural_sort.module \views_natural_sort_menu()
Implementation of hook_menu().
File
- ./
views_natural_sort.module, line 25 - Provides a views filter that sorts titles by a more natural manner by ignoring articles like "The" and "A."
Code
function views_natural_sort_menu() {
$items = array();
$items['admin/settings/views_natural_sort'] = array(
'title' => 'Views Natural Sort',
'description' => 'Configuration and settings for natural sorting.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'administer site configuration',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/settings/views_natural_sort/rebuild_index'] = array(
'title' => 'Rebuild Search Index',
'description' => 'Rebuild Views Natural Sort\'s search index',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'views_natural_sort_rebuild_index_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer views',
),
'file' => 'views_natural_sort.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/settings/views_natural_sort/settings'] = array(
'title' => 'Configure Word Removal Lists',
'description' => 'Set what words should be ignored when performing a natural sort.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'views_natural_sort_settings_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer views',
),
'file' => 'views_natural_sort.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
return $items;
}