function CommentHelperCase::setCommentsPerPage
Set the default number of comments per page.
Parameters
integer $comments: Comments per page value.
5 calls to CommentHelperCase::setCommentsPerPage()
- CommentBlockFunctionalTest::testRecentCommentBlock in modules/
comment/ comment.test - Test the recent comments block.
- CommentInterfaceTest::testCommentInterface in modules/
comment/ comment.test - Test comment interface.
- CommentPagerTest::testCommentNewPageIndicator in modules/
comment/ comment.test - Test comment_new_page_count().
- CommentPagerTest::testCommentOrderingThreading in modules/
comment/ comment.test - Test comment ordering and threading.
- CommentPagerTest::testCommentPaging in modules/
comment/ comment.test - Confirm comment paging works correctly with flat and threaded comments.
File
-
modules/
comment/ comment.test, line 195
Class
- CommentHelperCase
- @file Tests for comment.module.
Code
function setCommentsPerPage($number) {
$this->setCommentSettings('comment_default_per_page', $number, format_string('Number of comments per page set to @number.', array(
'@number' => $number,
)));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.