function CommentHelperCase::setCommentForm

Set comment form location setting.

Parameters

boolean $enabled: Form value.

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

... See full list

File

modules/comment/comment.test, line 175

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') . '.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.