You are here

function drush_search_api_server_disable in Search API 8

Same name and namespace in other branches
  1. 7 search_api.drush.inc \drush_search_api_server_disable()

Disables a search server.

Parameters

string $server_id: The ID of the server to disable.

File

./search_api.drush.inc, line 395
Drush commands for Search API.

Code

function drush_search_api_server_disable($server_id = NULL) {
  $command_helper = _search_api_drush_command_helper();
  try {
    $command_helper
      ->disableServerCommand($server_id);
  } catch (ConsoleException $exception) {
    drush_print($exception
      ->getMessage());
  }
}