Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function CommentHelperCase::setCommentSubject

Set comment subject setting.

Parameters

boolean $enabled: Subject value.

File

modules/comment/comment.test, line 142

Class

CommentHelperCase
@file Tests for comment.module.

Code

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

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