You are here

function hook_search_api_processor_info_alter in Search API 7

Same name and namespace in other branches
  1. 8 search_api.api.php \hook_search_api_processor_info_alter()

Alter the available processors.

Parameters

array $processors: The processor information to be altered, keyed by processor IDs.

See also

hook_search_api_processor_info()

1 invocation of hook_search_api_processor_info_alter()
search_api_get_processors in ./search_api.module
Returns a list of all available pre- and post-processors.

File

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

Code

function hook_search_api_processor_info_alter(array &$processors) {
  if (!empty($processors['example_processor'])) {
    $processors['example_processor']['weight'] = -20;
  }
}