function notifications_content_node_type_update in Notifications 7
Implements hook_node_type_update().
File
- notifications_content/
notifications_content.module, line 742 - Subscriptions to content events
Code
function notifications_content_node_type_update($info) {
if (!empty($info->old_type) && $info->old_type != $info->type) {
db_update('notifications_subscription_fields')
->fields(array(
'value' => $info->type,
))
->condition('type', 'node:type')
->condition('value', $info->old_type)
->execute();
}
}