Skip navigation
Help

comment_forms

7 comment.module comment_forms()

Implements hook_forms().

File

drupal/modules/comment/comment.module, line 1799
Enables users to comment on published content.

Code

function comment_forms() {
  $forms = array();
  foreach (node_type_get_types() as $type) {
    $forms["comment_node_{$type->type}_form"]['callback'] = 'comment_form';
  }
  return $forms;
}