function drush_search_api_server_enable in Search API 8
Same name and namespace in other branches
- 7 search_api.drush.inc \drush_search_api_server_enable()
Enables a search server.
Parameters
string $server_id: The ID of the server to enable.
File
- ./
search_api.drush.inc, line 379 - Drush commands for Search API.
Code
function drush_search_api_server_enable($server_id = NULL) {
$command_helper = _search_api_drush_command_helper();
try {
$command_helper
->enableServerCommand($server_id);
} catch (ConsoleException $exception) {
drush_print($exception
->getMessage());
}
}