public function postProcess()
 {
     if ($this->_action & CRM_Core_Action::DELETE) {
         CRM_CiviruleTwitter_BAO_TwitterAccount::deleteWithId($this->_id);
         CRM_Core_Session::setStatus(ts('Selected twitter account has been deleted.'), '', 'success');
     } else {
         $params = array();
         // store the submitted values in an array
         $params = $this->exportValues();
         if ($this->_action & CRM_Core_Action::UPDATE) {
             $params['id'] = $this->_id;
         }
         CRM_CiviruleTwitter_BAO_TwitterAccount::add($params);
         CRM_Core_Session::setStatus(ts('Your twitter account has been saved'), '', 'success');
     }
 }