You are here

function search_api_server_load in Search API 7

Load the search server with the specified id.

Parameters

$id: The search server's id.

$reset: Whether to reset the internal cache.

Return value

SearchApiServer An object representing the server with the specified id.

13 calls to search_api_server_load()
drush_search_api_server_disable in ./search_api.drush.inc
Disables a search server.
drush_search_api_server_enable in ./search_api.drush.inc
Enables a search server.
SearchApiIndex::save in includes/index_entity.inc
Saves this index to the database.
SearchApiIndex::server in includes/index_entity.inc
Get the server this index lies on.
SearchApiWebTest::server in ./search_api.test
Returns the test server in use by this test case.

... See full list

1 string reference to 'search_api_server_load'
search_api_admin_add_server in ./search_api.admin.inc
Form callback showing a form for adding a server.

File

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

Code

function search_api_server_load($id, $reset = FALSE) {
  $ret = search_api_server_load_multiple(array(
    $id,
  ), array(), $reset);
  return $ret ? reset($ret) : FALSE;
}