original_string: protected function choice_group($mform) {
          $options = array();
          for ($i = 1; $i <= $this->get_maximum_choice_group_number(); $i += 1) {
              $options[$i] = question_utils::int_to_letter($i);
          }
          $grouparray = array();
          $grouparray[] = $mform->createElement('text', 'answer',
                  get_string('answer', 'qtype_gapselect'), array('size' => 30, 'class' => 'tweakcss'));
          $grouparray[] = $mform->createElement('select', 'choicegroup',
                  get_string('group', 'qtype_gapselect'), $options);
          return $grouparray;
      }
code: protected function choice_group($mform) {
          $options = array();
          for ($i = 1; $i <= $this->get_maximum_choice_group_number(); $i += 1) {
              $options[$i] = question_utils::int_to_letter($i);
          }
          $grouparray = array();
          $grouparray[] = $mform->createElement('text', 'answer',
                  get_string('answer', 'qtype_gapselect'), array('size' => 30, 'class' => 'tweakcss'));
          $grouparray[] = $mform->createElement('select', 'choicegroup',
                  get_string('group', 'qtype_gapselect'), $options);
          return $grouparray;
      }
code_tokens: protected function choice_group ( $ mform ) { $ options = array ( ) ; for ( $ i = 1 ; $ i <= $ this -> get_maximum_choice_group_number ( ) ; $ i += 1 ) { $ options [ $ i ] = question_utils :: int_to_letter ( $ i ) ; } $ grouparray = array ( ) ; $ grouparray [ ] = $ mform -> createElement ( 'text' , 'answer' , get_string ( 'answer' , 'qtype_gapselect' ) , array ( 'size' => 30 , 'class' => 'tweakcss' ) ) ; $ grouparray [ ] = $ mform -> createElement ( 'select' , 'choicegroup' , get_string ( 'group' , 'qtype_gapselect' ) , $ options ) ; return $ grouparray ; }
docstring: Creates an array with elements for a choice group.
  
  @param object $mform The Moodle form we are working with
  @param int $maxgroup The number of max group generate element select.
  @return array Array for form elements
docstring_tokens: Creates an array with elements for a choice group .