aboutsummaryrefslogtreecommitdiffstats
path: root/include/Contact.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/Contact.php')
-rwxr-xr-x[-rw-r--r--]include/Contact.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php
index 45fd368d8..baccea305 100644..100755
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -10,6 +10,12 @@ function user_remove($uid) {
return;
$a = get_app();
logger('Removing user: ' . $uid);
+
+ $r = q("select * from user where uid = %d limit 1", intval($uid));
+
+ call_hooks('remove_user',$r[0]);
+
+
q("DELETE FROM `contact` WHERE `uid` = %d", intval($uid));
q("DELETE FROM `group` WHERE `uid` = %d", intval($uid));
q("DELETE FROM `group_member` WHERE `uid` = %d", intval($uid));