function shurly_service_menu in ShURLy 7
Same name and namespace in other branches
- 8 shurly_service/shurly_service.module \shurly_service_menu()
- 6 shurly_service/shurly_service.module \shurly_service_menu()
Implements hook_menu().
File
- shurly_service/
shurly_service.module, line 32 - Link ShURLy functionalities to services module. @todo
Code
function shurly_service_menu() {
$items = array();
$items['shurly/api/shorten'] = array(
'file' => 'shurly_service.inc',
'page callback' => 'shurly_service_shorten',
'access callback' => 'shurly_service_access_api_key',
'type' => MENU_CALLBACK,
);
$items['shurly/api/expand'] = array(
'file' => 'shurly_service.inc',
'page callback' => 'shurly_service_expand',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}