function CommentHelperCase::setCommentAnonymous

Set comment anonymous level setting.

Parameters

integer $level: Anonymous level.

5 calls to CommentHelperCase::setCommentAnonymous()
CommentAnonymous::testAnonymous in modules/comment/comment.test
Test anonymous comment functionality.
CommentApprovalTest::testApprovalAdminInterface in modules/comment/comment.test
Test comment approval functionality through admin/content/comment.
CommentApprovalTest::testApprovalNodeInterface in modules/comment/comment.test
Test comment approval functionality through node interface.
CommentInterfaceTest::testCommentNodeCommentStatistics in modules/comment/comment.test
Tests the node comment statistics.
RdfCommentAttributesTestCase::setUp in modules/rdf/rdf.test
Sets up a Drupal site for running functional and integration tests.

File

modules/comment/comment.test, line 185

Class

CommentHelperCase
@file Tests for comment.module.

Code

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

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