function CommentHelperCase::setCommentForm in Drupal 7
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.
File
- modules/
comment/ comment.test, line 175 - 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') . '.');
}