protected function _initSetupForm(Am_Form_Setup $form) { $form->setTitle(___(self::TITLE)); $form->addText('api_key', array('size' => 40))->setLabel(array("API Key", ""))->addRule('required'); $form->addText('api_url', array('size' => 60))->setLabel(array("Full API URL", "eg., http://{your_domain}/{your_install_swm_directory}/api/api.php"))->addRule('required'); if ($this->isConfigured()) { $form->addSortableMagicSelect('amember_fields')->setLabel("Pass additional fields from aMember")->loadOptions($this->getAmemberOptions()); $form->addSortableMagicSelect('swm_fields')->setLabel("to SWM")->loadOptions($this->getSWMOptions()); $opt = array(); foreach ($this->getLists() as $k => $l) { $opt[$k] = '#' . $k . ' - ' . $l['title']; } $form->addMagicSelect('double_optin')->setLabel("Enabled Double Optin for these lists")->loadOptions($opt); } $form->addAdvCheckbox('check_blocklists')->setLabel(array('Check All Emails at Blocklists', "before subscribing")); $form->addAdvCheckbox('send_pass')->setLabel(array('Send Password to SWM', "it's not safe\npasswords are not stored encrypted at SWM")); $form->addAdvCheckbox('debud_mode')->setLabel(array('Debug Mode Enabled', "write debug info to logs\nit's recommended enable it at the first time")); }