function run() { $id = CRM_Utils_Request::retrieve('mid', 'Positive'); $bao = new CRM_MailchimpConverter_BAO_TokenMapping(); $bao->id = $id; $bao->delete(); CRM_Core_Session::setStatus(ts('Token mapping has been removed')); CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/mailchimp/token-mappings')); parent::run(); }
public function __construct() { $bao = new CRM_MailchimpConverter_BAO_TokenMapping(); $this->tagMap = $bao->findAll(true); }
function run() { $bao = new CRM_MailchimpConverter_BAO_TokenMapping(); $this->assign('tokenMappings', $bao->findAll()); parent::run(); }