1 comment.test | CommentHelperCase::setCommentForm($enabled) |
Sets the value governing whether the comment form is on its own page.
Parameters
boolean $enabled: TRUE if the comment form should be displayed on the same page as the comments; FALSE if it should be displayed on its own page.
File
- core/
modules/ comment/ tests/ comment.test, line 247 - Tests for the Comment module.
Class
Code
function setCommentForm($enabled) {
$this->setCommentSettings('comment_form_location', ($enabled ? COMMENT_FORM_BELOW : COMMENT_FORM_SEPARATE_PAGE), 'Comment controls ' . ($enabled ? 'enabled' : 'disabled') . '.');
}