function cufon_theme_registry_alter in Cufón 6
Implementation of hook_theme_registry_alter().
File
- ./
cufon.module, line 139 - Adds simple Cufón support to Drupal.
Code
function cufon_theme_registry_alter(&$theme_registry) {
if (isset($theme_registry['page'])) {
if (!empty($theme_registry['page']['preprocess functions'])) {
if ($key = array_search('cufon_preprocess_page', $theme_registry['page']['preprocess functions'])) {
unset($theme_registry['page']['preprocess functions'][$key]);
}
}
// Run before js is added before template_preprocess_page().
array_unshift($theme_registry['page']['preprocess functions'], 'cufon_preprocess_page');
}
}