summaryrefslogtreecommitdiff
path: root/modules/forum/forum.module
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-02-29 00:05:03 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2012-02-29 00:05:03 -0800
commit559c4d739a50a897f0b8dfaf870524694109b6a1 (patch)
treee9360dc02e5b60feb2a6265a518247f533f2df14 /modules/forum/forum.module
parent94677b85b695807b6809c5504af6737ca92903dd (diff)
downloadbrdo-559c4d739a50a897f0b8dfaf870524694109b6a1.tar.gz
brdo-559c4d739a50a897f0b8dfaf870524694109b6a1.tar.bz2
Issue #1401496 by bleen18, Albert Volkman: Fixed forum_taxonomy_term_delete() completely broken (takes instead of entity).
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r--modules/forum/forum.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index d35fe5626..472efd1f7 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -468,10 +468,10 @@ function forum_permission() {
/**
* Implements hook_taxonomy_term_delete().
*/
-function forum_taxonomy_term_delete($tid) {
+function forum_taxonomy_term_delete($term) {
// For containers, remove the tid from the forum_containers variable.
$containers = variable_get('forum_containers', array());
- $key = array_search($tid, $containers);
+ $key = array_search($term->tid, $containers);
if ($key !== FALSE) {
unset($containers[$key]);
}