You are here

function search_service_search_users in Services 5

1 string reference to 'search_service_search_users'
search_service_service in services/search_service/search_service.module
Implementation of hook_service().

File

services/search_service/search_service.module, line 92
The module which exposes services related to searching

Code

function search_service_search_users($keys) {

  // invoke the search hook to generate results
  $results = module_invoke('user', 'search', 'search', $keys);
  if ($results && is_array($results) && count($results)) {
    return $results;
  }
  return services_error(t('Search returned no results.'));
}