function comment_node_type

6.x comment.module comment_node_type($op, $info)

Implementation of hook_node_type().

File

drupal-6.x/modules/comment/comment.module, line 249
Enables users to comment on published content.

Code

function comment_node_type($op, $info) {
  $settings = array(
    'comment',
    'comment_default_mode',
    'comment_default_order',
    'comment_default_per_page',
    'comment_controls',
    'comment_anonymous',
    'comment_subject_field',
    'comment_preview',
    'comment_form_location',
  );
  switch ($op) {
    case 'delete':
      foreach ($settings as $setting) {
        variable_del($setting . '_' . $info->type);
      }
      break;
  }
}