aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 00:37:38 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 00:37:38 -0300
commitd41fe9ee634dd5b16413b70d19cd5c28eb115083 (patch)
treea14129726f637f86efcdac7bec69118478e1bd76
parent04d95043920a515fa2dd888db2052b9d4d7ad9d7 (diff)
downloadmuamba-d41fe9ee634dd5b16413b70d19cd5c28eb115083.tar.gz
muamba-d41fe9ee634dd5b16413b70d19cd5c28eb115083.tar.bz2
Implementing hook_user_delete()
-rw-r--r--muamba.module9
1 files changed, 9 insertions, 0 deletions
diff --git a/muamba.module b/muamba.module
index 9bad3bd..c4d9c60 100644
--- a/muamba.module
+++ b/muamba.module
@@ -193,3 +193,12 @@ function muamba_node_delete($node) {
->condition('nid', $node->nid)
->execute();
}
+
+/**
+ * Implements hook_user_delete()
+ */
+function muamba_user_delete($account) {
+ db_delete('muamba')
+ ->condition('uid', $account->uid)
+ ->execute();
+}