You are here

function pagination_content_extra_fields in Pagination (Node) 6

@desc Implementation of hook_content_extra_fields()

File

./pagination.module, line 375
pagination.module @desc Allow for arbitrary nodes to be paginated. administrators can set which nodes they wish to paginate, and the length of content required to split a node into pages. Alternatively, content creators can set manual break points…

Code

function pagination_content_extra_fields($type) {
  $pg =& Pagination::getInstance();
  if ($pg
    ->getValue($type)) {
    return array(
      'pagination_pager' => array(
        'label' => t('Pagination pager'),
        'description' => t('Pager'),
        'weight' => 50,
      ),
      'pagination_toc' => array(
        'label' => t('Pagination Table of Contents'),
        'description' => t('Table of Contents'),
        'weight' => -50,
      ),
    );
  }
}