function comment_node_type in Drupal 6
Implementation of hook_node_type().
File
- 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;
}
}