function onUserAfterDelete(Am_Event_UserAfterDelete $event) { $found = $this->getTable()->findByAmember($event->getUser()); if (!$found || !$this->canRemove($found)) { return; } if ($this->getConfig('remove_users')) { $this->_table->removeRecord($found); } elseif (!$this->isBanned($found)) { $this->_table->disableRecord($found, $this->calculateGroups(null, true)); } }
function removeRecord(Am_Record $record) { parent::removeRecord($record); $this->_db->query('delete from ?_usermeta where user_id = ?', $record->pk()); if ($this->getPlugin()->getConfig('simple_press')) { $this->removeFromSimplePress($record); } }