/** * Get the mailchimp form * * @return Form */ public function MailChimpForm($listCode = null) { $form = new MailChimpForm($this->owner, 'MailChimpForm', null, $listCode); $form->loadDataFrom($this->owner->request->postVars()); return $form; }
/** * Gets the mailchimp newsletter form * * @param Array $arguments */ public static function MailChimpShortcodeHandler($arguments) { $form = new MailChimpForm(Controller::curr(), 'MailChimpForm', $arguments); return $form->forTemplate(); }