You are here

protected function Pagination::setHeader in Pagination (Node) 7

Same name and namespace in other branches
  1. 6 pagination.module \Pagination::setHeader()

Set the page headers.

Parameters

$header: The page header to add to the stack.

1 call to Pagination::setHeader()
Pagination::parseText in includes/Pagination.inc
Handle pagination depending on pagination style

File

includes/Pagination.inc, line 281

Class

Pagination
Handles all the pagination logic

Code

protected function setHeader($header) {
  static $first;
  if (!$first and $this->value < PAGINATION_AUTO) {

    //  Manual paging should have a default header set for page 1
    $first = TRUE;
    $this->headers[] = t('Page 1');
  }
  $this->headers[] = $header;
}