function CommentHelperCase::setCommentPreview
Set comment preview setting.
Parameters
int $mode: Preview value.
22 calls to CommentHelperCase::setCommentPreview()
- CommentContentRebuild::testCommentRebuild in drupal-7.x/
modules/ comment/ comment.test - Test to ensure that the comment's content array is rebuilt for every call to comment_view().
- CommentContentRebuild::testCommentRebuild in drupal-7.x/
modules/ comment/ comment.test - Test to ensure that the comment's content array is rebuilt for every call to comment_view().
- 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.
Archivo
- drupal-7.x/
modules/ comment/ comment.test, line 144 - Tests for comment.module.
Class
Código
function setCommentPreview($mode) {
switch ($mode) {
case DRUPAL_DISABLED:
$mode_text = 'disabled';
break;
case DRUPAL_OPTIONAL:
$mode_text = 'optional';
break;
case DRUPAL_REQUIRED:
$mode_text = 'required';
break;
}
$this->setCommentSettings('comment_preview', $mode, 'Comment preview ' . $mode_text . '.');
}