function notifications_content_node_type in Notifications 5
Same name and namespace in other branches
- 6.4 notifications_content/notifications_content.module \notifications_content_node_type()
- 6 notifications_content/notifications_content.module \notifications_content_node_type()
- 6.2 notifications_content/notifications_content.module \notifications_content_node_type()
- 6.3 notifications_content/notifications_content.module \notifications_content_node_type()
Implementation of hook node_type
File
- notifications_content/
notifications_content.module, line 493 - Subscriptions to content events
Code
function notifications_content_node_type($op, $info) {
if ($op == 'delete') {
// Remove all subscriptions for this node type
notifications_delete_subscriptions(array(
'event_type' => 'node',
), array(
'type' => $info->type,
));
}
}