1 comment.test CommentHelperCase::setCommentAnonymous($level)

Sets the value governing restrictions on anonymous comments.

Parameters

integer $level: The level of the contact information allowed for anonymous comments:

  • 0: No contact information allowed.
  • 1: Contact information allowed but not required.
  • 2: Contact information required.

File

core/modules/comment/tests/comment.test, line 243
Tests for the Comment module.

Class

CommentHelperCase

Code

function setCommentAnonymous($level) {
  $this->setCommentSettings('comment_anonymous', $level, format_string('Anonymous commenting set to level @level.', array('@level' => $level)));
}