function CommentHelperCase::setCommentsPerPage
7.x comment.test | CommentHelperCase::setCommentsPerPage($number) |
Set the default number of comments per page.
Parameters
integer $comments: Comments per page value.
5 calls to CommentHelperCase::setCommentsPerPage()
- CommentBlockFunctionalTest::testRecentCommentBlock in drupal-7.x/
modules/ comment/ comment.test - Test the recent comments block.
- CommentInterfaceTest::testCommentInterface in drupal-7.x/
modules/ comment/ comment.test - Test comment interface.
- CommentPagerTest::testCommentNewPageIndicator in drupal-7.x/
modules/ comment/ comment.test - Test comment_new_page_count().
- CommentPagerTest::testCommentOrderingThreading in drupal-7.x/
modules/ comment/ comment.test - Test comment ordering and threading.
- CommentPagerTest::testCommentPaging in drupal-7.x/
modules/ comment/ comment.test - Confirm comment paging works correctly with flat and threaded comments.
File
- drupal-7.x/
modules/ comment/ comment.test, line 187 - Tests for comment.module.
Class
Code
function setCommentsPerPage($number) {
$this->setCommentSettings('comment_default_per_page', $number, format_string('Number of comments per page set to @number.', array('@number' => $number)));
}