function _cleanpager_is_array_theme in Clean Pagination 7
Determine if the theme needs an array instead of a link.
1 call to _cleanpager_is_array_theme()
- cleanpager_theme_pager_link in ./
cleanpager.module - Override theme for a pager link
File
- ./
cleanpager.module, line 356
Code
function _cleanpager_is_array_theme($themes, $theme_key) {
// check if the given theme needs an array rather than an html string
if (in_array($theme_key, variable_get('cleanpager_array_themes', array(
'tao',
)))) {
return TRUE;
}
$theme_object = $themes[$theme_key];
// Check the base theme.
if (isset($theme_object->info) && !empty($theme_object->info['base theme'])) {
return _cleanpager_is_array_theme($themes, $theme_object->info['base theme']);
}
return FALSE;
}