You are here

function notifications_feed_nodeapi in Notifications 5

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

Implementation of hook_nodeapi()

File

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