english/administrator/components/com_aicontactsafe/controllers/control_panel.php
// function to discard all changes and return to the section defined in return_task
function to discard all changes and return to the section defined in return_task
function to discard all changes and return to the section defined in return_task
function cancel() {
		$model = &$this->getModel( $this->_sTaskModel, '', $this->_parameters );
		$model->resetFormFields();
		$new_values = array('sTask'=>'default');
		$link = $model->getReturnLink($new_values);
		$this->setRedirect($link);
	}
function cancel ( ) { $ model = & $ this -> getModel ( $ this -> _sTaskModel , '' , $ this -> _parameters ) ; $ model -> resetFormFields ( ) ; $ new_values = array ( 'sTask' => 'default' ) ; $ link = $ model -> getReturnLink ( $ new_values ) ; $ this -> setRedirect ( $ link ) ; }
function to discard all changes and return to the section defined in return_task
function to discard all changes and return to the section defined in return_task