function fuzzysearch_enable in Fuzzy Search 7
Implements hook_enable().
File
- ./
fuzzysearch.install, line 71 - Install and update hook implementations of the fuzzysearch module.
Code
function fuzzysearch_enable() {
// @codingStandardsIgnoreStart
// $servers = search_api_get_service_info(FALSE);
// foreach ($servers as $server) {
// if ($server->class == 'FuzzySearchService') {
// // Enable the servers.
// search_api_server_enable($server->id);
// // Enable indexes.
// $indexes = search_api_index_load_multiple(FALSE, $conditions = array('server' => $server->machine_name));
// foreach ($indexes as $index) {
// search_api_index_enable($index->id);
// // Enable any search pages.
// if (module_exists('search_api_page')) {
// db_update('search_api_page')
// ->condition('index_id', $index->machine_name)
// ->fields(array('enabled' => 1))
// ->execute();
// }
// }
// }
// }
// @codingStandardsIgnoreEnd
}