function subscriptions_taxonomy_taxonomy_term_delete in Subscriptions 7
Same name and namespace in other branches
- 2.0.x subscriptions_taxonomy/subscriptions_taxonomy.module \subscriptions_taxonomy_taxonomy_term_delete()
Implements hook_taxonomy_term_delete().
Removes the corresponding records from the Subscriptions tables.
File
- ./
subscriptions_taxonomy.module, line 254 - Subscriptions to taxonomy terms.
Code
function subscriptions_taxonomy_taxonomy_term_delete($term) {
foreach (array(
'subscriptions',
'subscriptions_queue',
) as $table) {
db_delete($table)
->condition('module', 'node')
->condition('field', 'tid')
->condition('value', $term->tid)
->execute();
}
}