comment_field_extra_fields

Versions
mediamosa-21
comment_field_extra_fields()

Implements hook_field_extra_fields().

Code

modules/comment/comment.module, line 162

<?php
function comment_field_extra_fields() {
  $return = array();

  foreach (node_type_get_types() as $type) {
    if (variable_get('comment_subject_field_' . $type->type, 1) == 1) {
      $return['comment']['comment_node_' . $type->type] = array(
        'author' => array(
          'label' => t('Author'),
          'description' => t('Author textfield'),
          'weight' => -2,
        ),
        'title' => array(
          'label' => t('Subject'),
          'description' => t('Subject textfield'),
          'weight' => -1,
        ),
      );
    }
  }

  return $return;
}
?>