You are here

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

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

Handle words per page chunking.

Parameters

$text: The text to parse.

$size: The "maximum" length to create sections from the text.

Return value

The chunk of text created.

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

File

includes/Pagination.inc, line 393

Class

Pagination
Handles all the pagination logic

Code

protected function parseChunk($text, $size) {
  return text_summary($text, NULL, $size);
}