mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
implemented deleteAccount hook to clean up table
This commit is contained in:
parent
405ade6280
commit
dad516c08d
@ -335,4 +335,17 @@ class emailadmin_smtp_sql extends emailadmin_smtp
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hook called on account deletion
|
||||||
|
*
|
||||||
|
* @param array $_hookValues values for keys 'account_lid', 'account_id'
|
||||||
|
* @return boolean true on success, false on error
|
||||||
|
*/
|
||||||
|
function deleteAccount($_hookValues)
|
||||||
|
{
|
||||||
|
$this->db->delete(self::TABLE, array('account_id' => $_hookValues['account_id']), __LINE__, __FILE__);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user