You are here

function hook_default_search_api_index in Search API 7

Define default search indexes.

Return value

array An array of default search indexes, keyed by machine names.

See also

hook_default_search_api_index_alter()

File

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

Code

function hook_default_search_api_index() {
  $defaults['main'] = entity_create('search_api_index', array(
    'name' => 'Main index',
    'machine_name' => 'main',
  ));
  return $defaults;
}