예제 #1
0
 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));
     }
 }
예제 #2
0
파일: wordpress.php 프로젝트: grlf/eyedock
 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);
     }
 }