comment_node_prepare
function comment_node_prepare
comment_node_prepare($node)
Implements hook_node_prepare().
File
- modules/comment/comment.module, line 1296
- 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); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
<