Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function comment_forms

Implements hook_forms().

File

modules/comment/comment.module, line 1840

Code

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

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