You are here

function hook_search_api_server_insert in Search API 7

A new search server was created.

Parameters

SearchApiServer $server: The new server.

1 function implements hook_search_api_server_insert()

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

search_api_search_api_server_insert in ./search_api.module
Implements hook_search_api_server_insert().

File

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

Code

function hook_search_api_server_insert(SearchApiServer $server) {
  db_insert('example_search_server')
    ->fields(array(
    'server' => $server->machine_name,
    'insert_time' => REQUEST_TIME,
  ))
    ->execute();
}