You are here

function subscriptions_content_node_delete in Subscriptions 2.0.x

Same name and namespace in other branches
  1. 7 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/subscriptions_content.module, line 358
Subscriptions to content events.

Code

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