function deploy_uuid_service_service in Deploy - Content Staging 6
Implementation of hook_service().
File
- modules/
deploy_uuid/ deploy_uuid_service.module, line 6
Code
function deploy_uuid_service_service() {
return array(
// uuid.get_key
array(
'#method' => 'deploy_uuid.get_key',
'#callback' => 'deploy_uuid_service_get_key',
'#access callback' => 'deploy_uuid_service_access',
'#file' => array(
'file' => 'inc',
'module' => 'deploy_uuid_service',
),
'#args' => array(
array(
'#name' => 'uuid',
'#type' => 'string',
'#description' => t('A UUID.'),
),
array(
'#name' => 'module',
'#type' => 'string',
'#description' => t('The module whose matching key we\'re retrieving.'),
),
),
'#return' => 'array',
'#help' => t('Return the primary key which matches a UUID.'),
),
// uuid.get_book
array(
'#method' => 'deploy_uuid.get_book',
'#callback' => 'deploy_uuid_service_get_book',
'#access callback' => 'deploy_uuid_service_access',
'#file' => array(
'file' => 'inc',
'module' => 'deploy_uuid_service',
),
'#args' => array(
array(
'#name' => 'uuid',
'#type' => 'string',
'#description' => t('A UUID.'),
),
),
'#return' => 'array',
'#help' => t('Return the book info for the given UUID.'),
),
);
}