public function run() { if (!$this->getForm()->validate()) { echo $this->renderConfirmationForm(); } else { $prefix = $this->grid->getId() . '_'; foreach ($this->getForm()->getValue() as $k => $v) { if (strpos($k, $prefix) === 0) { $this->_vars[substr($k, strlen($prefix))] = $v; } } // disable emailing Am_Mail::setDefaultTransport(new Am_Mail_Transport_Null()); return parent::run(); } }