public function postProcess() { $setting_url = CRM_Utils_System::url('civicrm/mailchimp/settings', 'reset=1', TRUE, NULL, FALSE, TRUE); $vals = $this->_submitValues; $runner = self::getRunner(FALSE, !empty($vals['mc_dry_run'])); // Clear out log table. CRM_Mailchimp_Sync::dropLogTable(); if ($runner) { // Run Everything in the Queue via the Web. $runner->runAllViaWeb(); } else { CRM_Core_Session::setStatus(ts('Nothing to pull. Make sure mailchimp settings are configured in the <a href=' . $setting_url . '>setting page</a>.')); } }
/** * Function to process the form * * @access public * * @return None */ public function postProcess() { $vals = $this->_submitValues; $runner = self::getRunner(FALSE, !empty($vals['mc_dry_run'])); // Clear out log table. CRM_Mailchimp_Sync::dropLogTable(); if ($runner) { // Run Everything in the Queue via the Web. $runner->runAllViaWeb(); } else { CRM_Core_Session::setStatus(ts('Nothing to sync. Make sure mailchimp settings are configured for the groups with enough members.')); } }