function simplenews_node_type_update in Simplenews 7
Same name and namespace in other branches
- 7.2 simplenews.module \simplenews_node_type_update()
Implements hook_node_type_update().
File
- ./
simplenews.module, line 301 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function simplenews_node_type_update($info) {
drupal_static_reset('simplenews_get_content_types');
if (simplenews_check_node_types($info->type)) {
simplenews_add_term_field($info);
}
else {
// Don't remove the field. This leads to data loss.
// simplenews_remove_term_field($info);
}
}