function comment_node_prepare

Implements hook_node_prepare().

File

modules/comment/comment.module, line 1302

Code

function comment_node_prepare($node) {
  if (!isset($node->comment)) {
    $node->comment = variable_get("comment_{$node->type}", COMMENT_NODE_OPEN);
  }
}

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