function search_service_service in Services 6
Same name and namespace in other branches
- 5 services/search_service/search_service.module \search_service_service()
- 6.2 services/search_service/search_service.module \search_service_service()
- 7 services/search_service/search_service.module \search_service_service()
Implementation of hook_service().
File
- services/
search_service/ search_service.module, line 23 - @author Services Dev Team
Code
function search_service_service() {
return array(
array(
'#method' => 'search.nodes',
'#callback' => 'search_service_nodes',
'#access arguments' => array(
'search content',
),
'#file' => array(
'file' => 'inc',
'module' => 'search_service',
),
'#key' => FALSE,
'#args' => array(
array(
'#name' => 'search_keys',
'#type' => 'string',
'#description' => t('Search keys.'),
),
array(
'#name' => 'simple',
'#type' => 'string',
'#optional' => TRUE,
'#description' => t('If set, returns only the main search fields (link, type, title, user, date, snippet) and no additional data.'),
),
),
'#return' => 'array',
'#help' => t('Searches nodes according to keys via hook_search.'),
),
array(
'#method' => 'search.users',
'#callback' => 'search_service_users',
'#access arguments' => array(
'search content',
),
'#file' => array(
'file' => 'inc',
'module' => 'search_service',
),
'#key' => FALSE,
'#args' => array(
array(
'#name' => 'search_keys',
'#type' => 'string',
'#description' => t('Search keys.'),
),
),
'#return' => 'array',
'#help' => t('Searches users according to keys via hook_search.'),
),
);
}