function CommentHelperCase::setCommentForm
7.x comment.test | CommentHelperCase::setCommentForm($enabled) |
Set comment form location setting.
Parameters
boolean $enabled: Form value.
10 calls to CommentHelperCase::setCommentForm()
- CommentInterfaceTest::testCommentInterface in drupal-7.x/
modules/ comment/ comment.test - Test comment interface.
- CommentInterfaceTest::testCommentNodeCommentStatistics in drupal-7.x/
modules/ comment/ comment.test - Tests the node comment statistics.
- CommentNodeAccessTest::testThreadedCommentView in drupal-7.x/
modules/ comment/ comment.test - Test that threaded comments can be viewed.
- 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.
File
- drupal-7.x/
modules/ comment/ comment.test, line 167 - Tests for comment.module.
Class
Code
function setCommentForm($enabled) {
$this->setCommentSettings('comment_form_location', ($enabled ? COMMENT_FORM_BELOW : COMMENT_FORM_SEPARATE_PAGE), 'Comment controls ' . ($enabled ? 'enabled' : 'disabled') . '.');
}