You are here

function hook_search_api_alter_callback_info_alter in Search API 7

Alter the available data alterations.

Parameters

array $callbacks: The callback information to be altered, keyed by callback IDs.

See also

hook_search_api_alter_callback_info()

1 invocation of hook_search_api_alter_callback_info_alter()
search_api_get_alter_callbacks in ./search_api.module
Returns a list of all available data alter callbacks.

File

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

Code

function hook_search_api_alter_callback_info_alter(array &$callbacks) {
  if (!empty($callbacks['example_random_alter'])) {
    $callbacks['example_random_alter']['name'] = t('Even more random alteration');
    $callbacks['example_random_alter']['class'] = 'ExampleUltraRandomAlter';
  }
}