function simplenews_remove_term_field in Simplenews 7
Remove the taxonomy term field for the newsletter category.
Parameters
$type: A node type object.
Related topics
File
- ./
simplenews.module, line 667 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function simplenews_remove_term_field($type) {
$field_name = variable_get('simplenews_category_field', 'field_simplenews_term');
$instance = field_info_instance('node', $field_name, $type->type);
if ($instance) {
field_delete_instance($instance);
}
}