function CommentHelperCase::setCommentForm

Set comment form location setting.

Parameters

boolean $enabled: Form value.

20 calls to CommentHelperCase::setCommentForm()
CommentInterfaceTest::testCommentInterface in drupal-7.x/modules/comment/comment.test
Test comment interface.
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.
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.

... See full list

Archivo

drupal-7.x/modules/comment/comment.test, line 167
Tests for comment.module.

Class

CommentHelperCase

Código

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