You are here

function finder_search_theme_registry_alter in Finder 7

Same name and namespace in other branches
  1. 6 modules/finder_search/finder_search.module \finder_search_theme_registry_alter()

Implements hook_theme_registry_alter().

See also

hook_theme_registry_alter()

File

modules/finder_search/finder_search.module, line 61
The finder search module.

Code

function finder_search_theme_registry_alter(&$theme_registry) {
  global $theme_info;
  $theme_funcs = variable_get('finder_search_finder_results_theme', array());

  // This is to fix upgrade from <= 6.x-1.5 to 6.x-1.7
  if (!is_array($theme_funcs)) {
    $theme_funcs = array();
  }
  $theme_funcs[$theme_info->name] = $theme_registry['finder_results']['function'];
  variable_set('finder_search_finder_results_theme', $theme_funcs);
  $theme_registry['finder_results']['function'] = 'finder_search_preprocess_finder_results';
}