function simplenews_update_7206 in Simplenews 7.2
Add recipient handler and handler settings field to issue content types.
File
- ./
simplenews.install, line 1125 - Install, update and uninstall functions for the simplenews module
Code
function simplenews_update_7206() {
$node_types = array();
foreach (node_type_get_types() as $type) {
if (variable_get('simplenews_content_type_' . $type->type, FALSE)) {
simplenews_issue_handler_field_add($type);
simplenews_issue_handler_settings_field_add($type);
}
}
}