implemented deleteAccount hook to clean up table

This commit is contained in:
Ralf Becker 2013-10-10 14:47:59 +00:00
parent 405ade6280
commit dad516c08d

View File

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