aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 00:39:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 00:39:25 -0300
commita86795fc1f96e12362fbce9f563f0a55aea3935f (patch)
tree4521d2fe30107d724aa07c2402e5ebb44bcfe294
parentd41fe9ee634dd5b16413b70d19cd5c28eb115083 (diff)
downloadmuamba-a86795fc1f96e12362fbce9f563f0a55aea3935f.tar.gz
muamba-a86795fc1f96e12362fbce9f563f0a55aea3935f.tar.bz2
Implementing hook_user_delete() (2)
-rw-r--r--muamba.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/muamba.module b/muamba.module
index c4d9c60..4e86abd 100644
--- a/muamba.module
+++ b/muamba.module
@@ -201,4 +201,8 @@ function muamba_user_delete($account) {
db_delete('muamba')
->condition('uid', $account->uid)
->execute();
+
+ db_delete('muamba')
+ ->condition('owner', $account->uid)
+ ->execute();
}