You are here

function hook_search_api_data_type_info_alter in Search API 7

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

Alter the data type info.

Modules may implement this hook to alter the information that defines a data type, or to add/remove some entirely. All properties that are available in hook_search_api_data_type_info() can be altered here.

Parameters

array $infos: The data type info array, keyed by type identifier.

See also

hook_search_api_data_type_info()

1 invocation of hook_search_api_data_type_info_alter()
search_api_get_data_type_info in ./search_api.module
Returns either all custom field type definitions, or a specific one.

File

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

Code

function hook_search_api_data_type_info_alter(array &$infos) {
  $infos['example_type']['name'] .= ' 2';
}