You are here

function notifications_tags_taxonomy in Notifications 6.4

Same name and namespace in other branches
  1. 6.2 notifications_tags/notifications_tags.module \notifications_tags_taxonomy()
  2. 6.3 notifications_tags/notifications_tags.module \notifications_tags_taxonomy()

Implementation of hook_taxonomy().

File

notifications_tags/notifications_tags.module, line 182
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;
  }
}