You are here

function CommentHelperCase::setCommentSubject in Drupal 7

Set comment subject setting.

Parameters

boolean $enabled: Subject value.

12 calls to CommentHelperCase::setCommentSubject()
CommentContentRebuild::testCommentRebuild in modules/comment/comment.test
Test to ensure that the comment's content array is rebuilt for every call to comment_view().
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().

... See full list

File

modules/comment/comment.test, line 142
Tests for comment.module.

Class

CommentHelperCase
@file Tests for comment.module.

Code

function setCommentSubject($enabled) {
  $this
    ->setCommentSettings('comment_subject_field', $enabled ? '1' : '0', 'Comment subject ' . ($enabled ? 'enabled' : 'disabled') . '.');
}