function CommentHelperCase::setCommentForm

Set comment form location setting.

Parameters

boolean $enabled: Form value.

10 calls to CommentHelperCase::setCommentForm()
CommentInterfaceTest::testCommentInterface in drupal/modules/comment/comment.test
Test comment interface.
CommentInterfaceTest::testCommentNodeCommentStatistics in drupal/modules/comment/comment.test
Tests the node comment statistics.
CommentNodeAccessTest::testThreadedCommentView in drupal/modules/comment/comment.test
Test that threaded comments can be viewed.
CommentPagerTest::testCommentNewPageIndicator in drupal/modules/comment/comment.test
Test comment_new_page_count().
CommentPagerTest::testCommentOrderingThreading in drupal/modules/comment/comment.test
Test comment ordering and threading.

... See full list

File

drupal/modules/comment/comment.test, line 173
Tests for comment.module.

Class

CommentHelperCase
@file Tests for comment.module.

Code

function setCommentForm($enabled) {
  $this
    ->setCommentSettings('comment_form_location', $enabled ? COMMENT_FORM_BELOW : COMMENT_FORM_SEPARATE_PAGE, 'Comment controls ' . ($enabled ? 'enabled' : 'disabled') . '.');
}