You are here

function notifications_feed_nodeapi in Notifications 6

Same name and namespace in other branches
  1. 5 notifications_feed/notifications_feed.module \notifications_feed_nodeapi()

Implementation of hook_nodeapi()

File

notifications_feed/notifications_feed.module, line 135
Subscriptions to FeedAPI feeds

Code

function notifications_feed_nodeapi(&$node, $op, $arg = 0) {
  switch ($op) {
    case 'delete':

      // Remove all feed subscriptions for this node
      notifications_delete_subscriptions(array(
        'type' => 'feed',
      ), array(
        'feed-nid' => $node->nid,
      ));
  }
}