function custom_pagers_menu in Custom Pagers 5
Same name and namespace in other branches
- 6 custom_pagers.module \custom_pagers_menu()
- 7 custom_pagers.module \custom_pagers_menu()
Implementation of hook_menu().
File
- ./
custom_pagers.module, line 6
Code
function custom_pagers_menu($may_cache) {
$items = array();
if ($may_cache) {
$access = user_access('administer custom pagers');
$items[] = array(
'path' => 'admin/build/custom_pagers',
'title' => t('Custom pagers'),
'description' => t('Add custom pagers for content types.'),
'callback' => 'custom_pagers_page',
'access' => $access,
);
$items[] = array(
'path' => 'admin/build/custom_pagers/add',
'title' => t('Add custom pager'),
'type' => MENU_CALLBACK,
'callback' => 'drupal_get_form',
'callback arguments' => array(
'custom_pagers_form',
),
'access' => $access,
);
$items[] = array(
'path' => 'admin/build/custom_pagers/edit',
'title' => t('Edit custom pager'),
'type' => MENU_CALLBACK,
'callback' => 'drupal_get_form',
'callback arguments' => array(
'custom_pagers_form',
),
'access' => $access,
);
}
return $items;
}