function paging_theme in Paging 6
Implementation of hook_theme().
File
- ./
paging.module, line 30 - Allows users to use a tag to break up a node into multiple pages.
Code
function paging_theme() {
$theme = array(
// Secondary Pager Navigation with page names in drop down list.
'paging_drop_down' => array(
'tags' => NULL,
'limit' => NULL,
'element' => NULL,
'parameters' => NULL,
'quantity' => NULL,
),
// Helper theme function to generates the select list for drop down pager.
'paging_drop_down_option' => array(
'url_chunk' => NULL,
'page_name' => NULL,
'page_no' => NULL,
'selected' => NULL,
),
// Copy of theme_pager_link without text attributes, and with current indicator.
'pager_link_item' => array(
'text' => NULL,
'page_new' => NULL,
'element' => NULL,
'parameters' => array(),
'attributes' => array(),
),
'pager_wrapper' => array(
'output' => NULL,
),
);
$types = node_get_types();
foreach ($types as $type) {
$enabled = variable_get('paging_enabled_' . $type->type, FALSE);
$custom_theme_function = variable_get('paging_pager_widget_custom_' . $type->type, FALSE);
if ($enabled && $custom_theme_function) {
$theme[$custom_theme_function] = array(
'tags' => array(),
'limit' => 10,
'element' => 0,
'parameters' => array(),
);
}
}
return $theme;
}