You are here

function search_api_get_processors in Search API 7

Returns a list of all available pre- and post-processors.

Return value

array An array of all available processors, keyed by id.

See also

hook_search_api_processor_info()

2 calls to search_api_get_processors()
SearchApiIndex::getProcessors in includes/index_entity.inc
Loads all enabled processors for this index in proper order.
search_api_admin_index_workflow in ./search_api.admin.inc

File

./search_api.module, line 2185
Provides a flexible framework for implementing search services.

Code

function search_api_get_processors() {
  $processors =& drupal_static(__FUNCTION__);
  if (!isset($processors)) {
    $processors = module_invoke_all('search_api_processor_info');

    // Fill optional settings with default values.
    foreach ($processors as $id => $processor) {
      $processors[$id] += array(
        'weight' => 0,
      );
    }

    // Invoke alter hook.
    drupal_alter('search_api_processor_info', $processors);
  }
  return $processors;
}