コード例 #1
0
 /**
  * Process close of survey
  *
  * @return array errors
  */
 protected function process_close()
 {
     if (confirm_box(true)) {
         $this->survey->close();
         redirect($this->base_url);
     } else {
         $s_hidden_fields = build_hidden_fields(array('t' => $this->topic_id, $this->action_name => $this->request->variable($this->action_name, '')));
         confirm_box(false, $this->user->lang['SURVEY_CLOSE_CONFIRM'], $s_hidden_fields);
     }
     return array();
 }