Commit 97bc92f6 authored by Dries's avatar Dries
Browse files

- Patch #29133 by DriesK: forum vid remains when vocabulary is deleted. ...

- Patch #29133 by DriesK: forum vid remains when vocabulary is deleted.  Prevents forum topics from getting lost.
parent aa39f5c7
......@@ -134,6 +134,9 @@ function forum_taxonomy($op, $type, $object) {
node_delete($edit);
}
}
elseif ($op == 'delete' && $type == 'vocabulary' && $object->vid == _forum_get_vid()) {
variable_del('forum_nav_vocabulary');
}
}
/**
......
......@@ -134,6 +134,9 @@ function forum_taxonomy($op, $type, $object) {
node_delete($edit);
}
}
elseif ($op == 'delete' && $type == 'vocabulary' && $object->vid == _forum_get_vid()) {
variable_del('forum_nav_vocabulary');
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment