function shorten_cs_menu in Shorten URLs 8
Same name and namespace in other branches
- 8.2 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 = array();
$items['admin/config/services/shorten/custom'] = array(
'title' => 'Custom services',
'description' => 'Specify information about any service to expose it to Shorten URLs.',
'page callback' => 'theme',
'page arguments' => array(
'shorten_cs_admin',
),
'access arguments' => array(
'administer Shorten URLs custom services',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/services/shorten/custom/edit/%shorten_cs'] = array(
'title' => 'Edit custom service',
'page callback' => 'shorten_cs_edit_form',
'page arguments' => array(
6,
),
'access arguments' => array(
'administer Shorten URLs custom services',
),
'type' => MENU_CALLBACK,
'file' => 'shorten_cs.admin.inc',
);
$items['admin/config/services/shorten/custom/delete/%shorten_cs'] = array(
'title' => 'Custom services',
'page callback' => 'shorten_cs_delete_form',
'page arguments' => array(
6,
),
'access arguments' => array(
'administer Shorten URLs custom services',
),
'type' => MENU_CALLBACK,
'file' => 'shorten_cs.admin.inc',
);
return $items;
}