function pagerer_theme_registry_alter in Pagerer 7
Implements hook_theme_registry_alter().
Pagerer replaces the theme_pager function defined in the theme registry with its own internal function, and stores the overriden function whereabouts in a cache entry, so it can be called when needed.
File
- ./
pagerer.module, line 287 - Pagerer
Code
function pagerer_theme_registry_alter(&$theme_registry) {
global $theme_key;
// Stores away details of the overriden function.
cache_set('pagerer_override:' . $theme_key . ':pager', $theme_registry['pager']);
// Override the theme callback in the registry.
$theme_registry['pager']['type'] = 'module';
$theme_registry['pager']['theme path'] = drupal_get_path('module', 'pagerer');
$theme_registry['pager']['function'] = '_pagerer_override_theme_pager';
}