You are here

function search_api_server_insert in Search API 7

Inserts a new search server into the database.

Parameters

array $values: An array containing the values to be inserted.

Return value

The newly inserted server's id, or FALSE on error.

File

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

Code

function search_api_server_insert(array $values) {
  $server = entity_create('search_api_server', $values);
  $server->is_new = TRUE;
  $server
    ->save();
  return $server->id;
}