function acquia_search_theme_registry_alter in Acquia Search 3.x
Same name and namespace in other branches
- 2.x acquia_search.module \acquia_search_theme_registry_alter()
Implements hook_theme_registry_alter().
Helps us alter some Search API status pages.
File
- ./
acquia_search.module, line 263 - Integration between Drupal and Acquia's hosted Solr search service.
Code
function acquia_search_theme_registry_alter(&$theme_registry) {
$module_handler = \Drupal::moduleHandler();
$module_path = $module_handler
->getModule('acquia_search')
->getPath();
$theme_registry['search_api_index']['variables']['acquia_search_info_box'] = NULL;
$theme_registry['search_api_index']['path'] = $module_path . '/templates';
$theme_registry['search_api_server']['variables']['acquia_search_info_box'] = NULL;
$theme_registry['search_api_server']['path'] = $module_path . '/templates';
}