function Pagination::setHeader in Pagination (Node) 6
Same name and namespace in other branches
- 7 includes/Pagination.inc \Pagination::setHeader()
@desc Private method to set headers
Parameters
string header: @void @private
1 call to Pagination::setHeader()
- Pagination::parseText in ./
pagination.module - @desc Handle pagination depending on pagination style
File
- ./
pagination.module, line 713 - 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…
Class
- Pagination
- @desc Handles all the pagination logic
Code
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;
}