You are here

function acquia_search_theme_registry_alter in Acquia Connector 8

Implements hook_theme_registry_alter().

Helps us alter some Search API status pages.

See also

acquia_search_theme_search_api_index()

File

acquia_search/acquia_search.module, line 591
Integration between Acquia 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';
}