function simplenews_node_type_update in Simplenews 7.2
Same name and namespace in other branches
- 7 simplenews.module \simplenews_node_type_update()
Implements hook_node_type_update().
File
- ./
simplenews.module, line 324 - 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_issue_fields_add($info);
}
else {
// Don't remove the field. This leads to data loss.
}
}