From 8aa25523721303b6883e1a793f20997f8a33ec0a Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 18 Jan 2012 16:21:30 -0800 Subject: add remove_user hook (it looks like dreamhost changed all my file permissions, this will make a nasty commit) --- include/Contact.php | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 include/Contact.php (limited to 'include/Contact.php') diff --git a/include/Contact.php b/include/Contact.php old mode 100644 new mode 100755 index 45fd368d8..baccea305 --- 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)); -- cgit v1.2.3