function _pagerer_execute_overriden_theme_pager in Pagerer 7
Executes call to the overridden pager function.
If the function overriden is not available, executes via a direct call to the theme_pager core function.
2 calls to _pagerer_execute_overriden_theme_pager()
- theme_pagerer in ./
pagerer.module - Pagerer multi-pane pager.
- _pagerer_override_theme_pager in ./
pagerer.module - Pagerer's wrapper for overriden standard 'pager' theme calls.
File
- ./
pagerer.module, line 506 - Pagerer
Code
function _pagerer_execute_overriden_theme_pager($v) {
global $theme_key;
// Get name of the overriden function.
$cache_entry = cache_get('pagerer_override:' . $theme_key . ':pager');
if ($cache_entry) {
$overridden_function = $cache_entry->data['function'];
}
// Calls the overriden function.
if (isset($overridden_function) && function_exists($overridden_function)) {
return $overridden_function($v);
}
else {
// Last resort.
require_once DRUPAL_ROOT . '/includes/pager.inc';
return theme_pager($v);
}
}