1 comment.module | comment_node_type_load(&$types) |
Implements hook_node_type_load().
File
- core/
modules/ comment/ comment.module, line 325 - Enables users to comment on published content.
Code
function comment_node_type_load(&$types) {
foreach ($types as $type_name => $type) {
$types[$type_name]->settings += array(
'comment_enabled' => FALSE,
'comment_default' => COMMENT_NODE_CLOSED,
'comment_per_page' => 50,
'comment_mode' => COMMENT_MODE_THREADED,
'comment_anonymous' => COMMENT_ANONYMOUS_MAYNOT_CONTACT,
'comment_title_options' => COMMENT_TITLE_AUTO,
'comment_user_picture' => TRUE,
'comment_form_location' => COMMENT_FORM_BELOW,
'comment_preview' => BACKDROP_OPTIONAL,
'comment_close_enabled' => FALSE,
'comment_close_days' => 14
);
}
}