public function onUserAfterInsert(Am_Event_UserAfterInsert $e) { if ($this->getConfig('unsubscribe_after_signup') != self::UNSUBSCRIBE_AFTER_ADDED) { return; } if (!($lists = $this->getConfig('unsubscribe_after_signup_lists'))) { return; } try { $this->changeSubscription($e->getUser(), array(), $lists); } catch (Exception $e) { //just log $this->getDi()->errorLogTable->logException($e); } }
function onUserAfterInsert(Am_Event_UserAfterInsert $event) { // skip this code if running from aMember CP @see $this->onUserBeforeInsert() if (preg_match('/^(\\d+)-(\\d+)-(\\d+)$/', $this->last_aff_id, $regs)) { $this->getDi()->affLeadTable->log($regs[1], $regs[2], $event->getUser()->pk(), $this->decodeClickId($regs[3])); } }