/**
  * Function to process the form
  *
  * @access public
  *
  * @return None
  */
 public function postProcess()
 {
     CRM_Utils_System::flushCache();
     if ($this->_action & CRM_Core_Action::DELETE) {
         $ext = new CRM_Core_Extensions();
         if ($ext->uninstall($this->_id, $this->_key)) {
             CRM_Core_Session::setStatus(ts('Extension has been uninstalled.'));
         }
     }
     if ($this->_action & CRM_Core_Action::ADD) {
         $ext = new CRM_Core_Extensions();
         $ext->install($this->_id, $this->_key);
         CRM_Core_Session::setStatus(ts('Extension has been installed.'));
     }
     if ($this->_action & CRM_Core_Action::ENABLE) {
         $ext = new CRM_Core_Extensions();
         $ext->enable($this->_id, $this->_key);
         CRM_Core_Session::setStatus(ts('Extension has been enabled.'));
     }
     if ($this->_action & CRM_Core_Action::DISABLE) {
         $ext = new CRM_Core_Extensions();
         $ext->disable($this->_id, $this->_key);
         CRM_Core_Session::setStatus(ts('Extension has been disabled.'));
     }
     if ($this->_action & CRM_Core_Action::UPDATE) {
         $ext = new CRM_Core_Extensions();
         $ext->upgrade($this->_id, $this->_key);
         CRM_Core_Session::setStatus(ts('Extension has been upgraded.'));
     }
     CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/extensions', 'reset=1&action=browse'));
 }