You are here

function subscriptions_content_node_delete in Subscriptions 7

Same name and namespace in other branches
  1. 2.0.x subscriptions_content/subscriptions_content.module \subscriptions_content_node_delete()

Implements hook_node_delete().

Catches node deletes and remove any associated thread subscriptions.

Parameters

object $node:

File

./subscriptions_content.module, line 356
Subscriptions to content events

Code

function subscriptions_content_node_delete($node) {
  subscriptions_delete_for_all_users('node', 'nid', $node->nid);
}