You are here

function html_title_theme_registry_alter in HTML Title 6

Same name and namespace in other branches
  1. 8 html_title.module \html_title_theme_registry_alter()
  2. 7 html_title.module \html_title_theme_registry_alter()

Implementation of hook_theme_registry_alter()

File

./html_title.module, line 32
This module enables limited HTML to be used in node titles. It strips title markup from RSS feeds to eliminate unsightly markup in feed readers.

Code

function html_title_theme_registry_alter(&$theme_registry) {

  // Re-order search result pre-processing so ours always runs last
  if (module_exists('search') && is_array($theme_registry['search_result']['preprocess functions'])) {
    foreach ($theme_registry['search_result']['preprocess functions'] as $value) {
      if ($value != 'html_title_preprocess_search_result') {
        $callbacks[] = $value;
      }
    }
    $callbacks[] = 'html_title_preprocess_search_result';
    $theme_registry['search_result']['preprocess functions'] = $callbacks;
  }
}