function html_title_theme_registry_alter in HTML Title 8
Same name and namespace in other branches
- 6 html_title.module \html_title_theme_registry_alter()
- 7 html_title.module \html_title_theme_registry_alter()
Implements hook_theme_registry_alter().
File
- ./
html_title.module, line 97 - HTML Title module to enable limited HTML tags in title.
Code
function html_title_theme_registry_alter(&$theme_registry) {
if (isset($theme_registry['breadcrumb'])) {
$hooks = $theme_registry['breadcrumb']['preprocess functions'];
if (($pos = array_search('html_title_preprocess_breadcrumb', $hooks)) !== FALSE) {
unset($hooks[$pos]);
}
$hooks[] = 'html_title_preprocess_breadcrumb';
$theme_registry['breadcrumb']['preprocess functions'] = array_values($hooks);
}
}