/** * _ProcessJob_RemoveList * Remove subscribers from list * * This function will return an associative array with the following value: * - error => Boolean => Indicates whether or not the function is successful * - halt => Boolean => Indicates whether or not to halt the operation * * @param Array $queue Queue record * @param Array $trigger Trigger record * @param Integer $subscriberid Subscriber ID to be removed * @return Array Returns an array of the status (see comment above) */ private function _ProcessJob_RemoveList($queueid, $trigger, $subscriberid) { $return = array( 'error' => true, 'halt' => false ); $subscriberapi = new Subscribers_API(); list($status, $msg) = $subscriberapi->DeleteSubscriber('', 0, $subscriberid); if (!$status) { $this->_log('Unable to delete subscriber from list.. Reason given: ' . $msg); return $return; } // Record log if (!$this->RecordLogActions($trigger['triggeremailsid'], $subscriberid, 'removelist')) { $this->_log('Cannot write log to the database...'); } $return['error'] = false; $return['halt'] = false; return $return; }