? dif.txt
? taxonomy_access.module_0.patch
? taxonomy_access_admin.inc__2.patch
? temp
? x
Index: taxonomy_access.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_access/taxonomy_access.module,v
retrieving revision 1.102.2.14.2.13
diff -u -r1.102.2.14.2.13 taxonomy_access.module
--- taxonomy_access.module	23 Feb 2008 20:42:08 -0000	1.102.2.14.2.13
+++ taxonomy_access.module	13 Mar 2008 14:08:03 -0000
@@ -231,9 +231,11 @@
  * Hook_taxonomy is called when changes are made to the taxonomy structure
 **/
 function taxonomy_access_taxonomy($op, $type, $array = NULL) {
-  if ($type == 'term') {
-    switch ($op) {
-      case 'delete': // delete everything from term_access and node_access
+  if ($op == 'delete') {
+    $path = drupal_get_path('module', 'taxonomy_access');
+    include_once($path . '/taxonomy_access_admin.inc');
+    switch ($type) {
+      case 'term': // delete everything from term_access and node_access
         // issue #167977 - klance
         $affected_nodes = _taxonomy_access_get_nodes_for_term($array['tid']);
         db_query('DELETE FROM {term_access} WHERE tid = %d', $array['tid']);
@@ -241,11 +243,8 @@
         _taxonomy_access_node_access_update($affected_nodes);
         //node_access_rebuild();
         break;
-    }
-  }
-  if ($type == 'vocabulary') {
-    switch ($op) {
-      case 'delete': // delete vocabulary from table 'term_access_defaults'
+
+      case 'vocabulary': // delete vocabulary from table 'term_access_defaults'
         // issue #167977 - klance
         $affected_nodes = _taxonomy_access_get_nodes_for_vocabulary($array['vid'], NULL);
         db_query('DELETE FROM {term_access_defaults} WHERE vid = %d', $array['vid']);
