You are here

function notifications_content_node_type in Notifications 6

Same name and namespace in other branches
  1. 5 notifications_content/notifications_content.module \notifications_content_node_type()
  2. 6.4 notifications_content/notifications_content.module \notifications_content_node_type()
  3. 6.2 notifications_content/notifications_content.module \notifications_content_node_type()
  4. 6.3 notifications_content/notifications_content.module \notifications_content_node_type()

Implementation of hook node_type

File

notifications_content/notifications_content.module, line 695
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,
    ));
  }
}