function paging_pager_style in Paging 6
Check and return pager navigation in specified format theme.
1 call to paging_pager_style()
- _paging_nodeapi in ./
paging.module - Helper function for paging_nodeapi().
File
- ./
paging.module, line 665 - Allows users to use a tag to break up a node into multiple pages.
Code
function paging_pager_style($node = NULL, $element = NULL) {
$theme_widget = variable_get('paging_pager_widget_' . $node->type, 'pager');
if ($theme_widget == 'custom') {
// Load the custom user function.
$theme_widget = variable_get('paging_pager_widget_custom_' . $node->type, 'pager');
}
if ($theme_widget == 'paging_drop_down') {
// Include CSS for 'Drop down pager' styling.
drupal_add_css(drupal_get_path('module', 'paging') . '/paging.css', 'module');
}
// Decode the comma entity.
$output = str_replace('%2C', ',', theme($theme_widget, NULL, 1, $element, array(), 9, $node->page_names));
return theme('pager_wrapper', $output);
}