function pagination_field_extra_fields in Pagination (Node) 7
Implements hook_field_extra_fields().
File
- ./
pagination.module, line 380
Code
function pagination_field_extra_fields() {
$extra = array();
$pg = Pagination::instance();
foreach (node_type_get_types() as $type => $node) {
$paging = $pg
->getValue($type);
$style = $pg
->getStyle($type);
if ($paging) {
if ($style < PAGINATION_TOC) {
$extra['node'][$type]['display']['pagination_pager'] = array(
'label' => t('Pagination Pager'),
'description' => t('Rendered Pagination Pager.'),
'weight' => 10,
);
}
if ($style > PAGINATION_DEFAULT && $pg
->getPageCount() > 1) {
$extra['node'][$type]['display']['pagination_toc'] = array(
'label' => t('Pagination Table of Content'),
'description' => t('Rendered Pagination Table of Content.'),
'weight' => 10,
);
}
}
}
return $extra;
}