add remove_user hook (it looks like dreamhost changed all my file permissions, this will make a nasty commit)

This commit is contained in:
friendica 2012-01-18 16:21:30 -08:00
commit 8aa2552372
1578 changed files with 7 additions and 1 deletions

6
include/Contact.php Normal file → Executable file
View file

@ -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));