/** * fields values validation * @param $values * @return mixed|void */ public function validation_tab_filter($values) { //var_dump($values); //var_dump($this->create_field_name('upload')); APF_hw_upload_field::do_form_action($values, $this->create_field_name('upload')); //return array(); //not save any fields value exit; //the way allow ajax upload work, no any output allow here, if you not specific upload handle //return $values; //allow to save fields value }
/** * fields values validation * @param $values * @return mixed|void */ public function validation_tab_filter($values) { //var_dump($values); //var_dump($this->create_field_name('upload')); APF_hw_upload_field::do_form_action($values, $this->create_field_name('uploader')); //return array(); //not save any fields value //exit(); //the way allow ajax upload work, no any output allow here, if you not specific upload handle if (hw__post('s')) { $_REQUEST['s'] = hw__post('s'); HW_SESSION::save_session('search_module', hw__post('s')); } return $values; //allow to save fields value }