diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 05:40:03 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 05:40:03 +0000 |
commit | 02d2f6e04a29acb1c3fcedcd5068878cffb10fbf (patch) | |
tree | 48d65b410f2dc34eaf8d69a822a09ec83e9d85df /modules/search | |
parent | 5d2cdb6ba95549da448e0a127e40fcc375e3886c (diff) | |
download | brdo-02d2f6e04a29acb1c3fcedcd5068878cffb10fbf.tar.gz brdo-02d2f6e04a29acb1c3fcedcd5068878cffb10fbf.tar.bz2 |
#678714 by effulgentsia: Unify use of theme hook / template suggestions, fix clobbering problems, and improve suggestion discovery performance.
Diffstat (limited to 'modules/search')
-rw-r--r-- | modules/search/search.pages.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/search/search.pages.inc b/modules/search/search.pages.inc index 575b62ede..7c1c95048 100644 --- a/modules/search/search.pages.inc +++ b/modules/search/search.pages.inc @@ -77,8 +77,7 @@ function template_preprocess_search_results(&$variables) { $variables['search_results'] .= theme('search_result', array('result' => $result, 'type' => $variables['type'])); } $variables['pager'] = theme('pager', array('tags' => NULL)); - // Provide alternate search results template. - $variables['template_files'][] = 'search-results-' . $variables['type']; + $variables['theme_hook_suggestions'][] = 'search_results__' . $variables['type']; } /** @@ -113,8 +112,7 @@ function template_preprocess_search_result(&$variables) { // Provide separated and grouped meta information.. $variables['info_split'] = $info; $variables['info'] = implode(' - ', $info); - // Provide alternate search result template. - $variables['template_files'][] = 'search-result-' . $variables['type']; + $variables['theme_hook_suggestions'][] = 'search_result__' . $variables['type']; } /** |