Exemplo n.º 1
0
 /**
  * Process loading of a question for modification
  *
  * @return array errors
  */
 protected function process_question_load_modify()
 {
     if (!check_form_key($this->form_key_name)) {
         return array($this->user->lang('FORM_INVALID'));
     }
     $question_id = (int) $this->request->variable('survey_load_modify_question', '');
     if ($this->survey->question_exists($question_id)) {
         $this->question_to_load = $question_id;
     }
     return array();
 }