Exemplo n.º 1
0
 /**
  * Process the form submission.
  */
 public function postProcess()
 {
     // store the submitted values in an array
     $params = $this->controller->exportValues($this->_name);
     if ($this->_action & CRM_Core_Action::UPDATE) {
         $params['id'] = $this->_id;
     }
     $component = CRM_Mailing_BAO_Component::add($params);
     CRM_Core_Session::setStatus(ts('The mailing component \'%1\' has been saved.', array(1 => $component->name)), ts('Saved'), 'success');
 }
Exemplo n.º 2
0
 /**
  * Function to process the form
  *
  * @access public
  * @return None
  */
 public function postProcess()
 {
     // store the submitted values in an array
     $params = $this->controller->exportValues($this->_name);
     $ids = array();
     if ($this->_action & CRM_Core_Action::UPDATE) {
         $ids['id'] = $this->_id;
     }
     require_once 'CRM/Mailing/BAO/Component.php';
     CRM_Mailing_BAO_Component::add($params, $ids);
 }