function comment_node_prepare
7.x comment.module | comment_node_prepare($node) |
Implements hook_node_prepare().
File
- drupal-7.x/
modules/ comment/ comment.module, line 1292 - Enables users to comment on published content.
Code
function comment_node_prepare($node) {
if (!isset($node->comment)) {
$node->comment = variable_get("comment_$node->type", COMMENT_NODE_OPEN);
}
}