You are here

function hook_search_api_service_info_alter in Search API 7

Alter the Search API service info.

Modules may implement this hook to alter the information that defines Search API services. All properties that are available in hook_search_api_service_info() can be altered here, with the addition of the "module" key specifying the module that originally defined the service class.

Parameters

array $service_info: The Search API service info array, keyed by service id.

See also

hook_search_api_service_info()

1 invocation of hook_search_api_service_info_alter()
search_api_get_service_info in ./search_api.module
Returns either a list of all available service infos, or a specific one.

File

./search_api.api.php, line 62
Hooks provided by the Search API module.

Code

function hook_search_api_service_info_alter(array &$service_info) {
  foreach ($service_info as $id => $info) {
    $service_info[$id]['class'] = 'MyProxyServiceClass';
    $service_info[$id]['example_original_class'] = $info['class'];
  }
}