add remove_user hook (it looks like dreamhost changed all my file permissions, this will make a nasty commit)
This commit is contained in:
parent
d840943621
commit
8aa2552372
1578 changed files with 7 additions and 1 deletions
6
include/Contact.php
Normal file → Executable file
6
include/Contact.php
Normal file → Executable 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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue