/**
  * Function to process the form
  *
  * @access public
  * @return None
  */
 function postProcess()
 {
     require_once 'CRM/Core/BAO/ActivityType.php';
     if ($this->_action & CRM_CORE_ACTION_DELETE) {
         CRM_Core_BAO_ActivityType::del($this->_id);
         CRM_Core_Session::setStatus(ts('Selected activity type has been deleted.'));
     } else {
         $params = $ids = array();
         // store the submitted values in an array
         $params = $this->exportValues();
         if ($this->_action & CRM_CORE_ACTION_UPDATE) {
             $ids['activityType'] = $this->_id;
         }
         $activityType = CRM_Core_BAO_ActivityType::add($params, $ids);
         CRM_Core_Session::setStatus(ts('The activity type "%1" has been saved.', array(1 => $activityType->name)));
     }
 }