Skip navigation
Help

comment_node_type_delete

7 comment.module comment_node_type_delete($info)

Implements hook_node_type_delete().

File

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

Code

function comment_node_type_delete($info) {
  field_attach_delete_bundle('comment', 'comment_node_' . $info->type);
  $settings = array(
    'comment',
    'comment_default_mode',
    'comment_default_per_page',
    'comment_anonymous',
    'comment_subject_field',
    'comment_preview',
    'comment_form_location',
  );
  foreach ($settings as $setting) {
    variable_del($setting . '_' . $info->type);
  }
}