function notifications_tags_taxonomy in Notifications 6.3
Same name and namespace in other branches
- 6.4 notifications_tags/notifications_tags.module \notifications_tags_taxonomy()
- 6.2 notifications_tags/notifications_tags.module \notifications_tags_taxonomy()
Implementation of hook_taxonomy().
File
- notifications_tags/
notifications_tags.module, line 108 - Subscriptions to taxonomy terms
Code
function notifications_tags_taxonomy($op, $type, $array = NULL) {
switch ($op) {
case 'delete':
switch ($type) {
case 'term':
// takes care of individual term deletion and vocab deletion because taxonomy iterates through all term delete hooks on the latter
notifications_delete_subscriptions(array(
'event_type' => 'node',
), array(
'tid' => $array['tid'],
), FALSE);
break;
}
break;
}
}