You are here

function hook_default_search_api_server in Search API 7

Define default search servers.

Return value

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

See also

hook_default_search_api_server_alter()

1 function implements hook_default_search_api_server()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

search_api_test_2_default_search_api_server in tests/search_api_test_2.module
Implements hook_default_search_api_server().

File

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

Code

function hook_default_search_api_server() {
  $defaults['main'] = entity_create('search_api_server', array(
    'name' => 'Main server',
    'machine_name' => 'main',
  ));
  return $defaults;
}