mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-17 02:21:25 +02:00
implemented deleteAccount hook to clean up table
This commit is contained in:
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user