function shorten_cs_menu in Shorten URLs 8.2
Same name and namespace in other branches
- 8 modules/shorten_cs/shorten_cs.module \shorten_cs_menu()
- 6 shorten_cs.module \shorten_cs_menu()
- 7.2 shorten_cs.module \shorten_cs_menu()
- 7 shorten_cs.module \shorten_cs_menu()
Implements hook_menu().
File
- modules/
shorten_cs/ shorten_cs.module, line 11 - Allows users to specify custom services for the Shorten URLs module.
Code
function shorten_cs_menu() {
$items = [];
$items['admin/config/services/shorten/custom'] = [
'title' => 'Custom services',
'description' => 'Specify information about any service to expose it to Shorten URLs.',
'page callback' => 'theme',
'page arguments' => [
'shorten_cs_admin',
],
'access arguments' => [
'administer Shorten URLs custom services',
],
'type' => MENU_LOCAL_TASK,
];
$items['admin/config/services/shorten/custom/edit/%shorten_cs'] = [
'title' => 'Edit custom service',
'page callback' => 'shortenCsEditForm',
'page arguments' => [
6,
],
'access arguments' => [
'administer Shorten URLs custom services',
],
'type' => MENU_CALLBACK,
'file' => 'shorten_cs.admin.inc',
];
$items['admin/config/services/shorten/custom/delete/%shorten_cs'] = [
'title' => 'Custom services',
'page callback' => 'shortenCsDeleteForm',
'page arguments' => [
6,
],
'access arguments' => [
'administer Shorten URLs custom services',
],
'type' => MENU_CALLBACK,
'file' => 'shorten_cs.admin.inc',
];
return $items;
}