You are here

function pagination_link_alter in Pagination (Node) 6

@desc Implementation of hook_link_alter()

File

./pagination.module, line 396
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_link_alter(&$links, $node) {
  if (array_key_exists('pagination-showall', $links)) {
    $showall['pagination-showall'] = $links['pagination-showall'];
    unset($links['pagination-showall']);
    $links = $showall + $links;
  }
}