aboutsummaryrefslogtreecommitdiffstats
path: root/include/Contact.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-18 16:21:30 -0800
committerfriendica <info@friendica.com>2012-01-18 16:21:30 -0800
commit8aa25523721303b6883e1a793f20997f8a33ec0a (patch)
tree2358612b173d708ade02d013dc096c95fab53970 /include/Contact.php
parentd84094362165524ce64fb2f0a588a376efa96c68 (diff)
downloadvolse-hubzilla-8aa25523721303b6883e1a793f20997f8a33ec0a.tar.gz
volse-hubzilla-8aa25523721303b6883e1a793f20997f8a33ec0a.tar.bz2
volse-hubzilla-8aa25523721303b6883e1a793f20997f8a33ec0a.zip
add remove_user hook (it looks like dreamhost changed all my file permissions, this will make a nasty commit)
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));