original_string: public function redo_question_button($slot, $disabled) {
          $attributes = array('type' => 'submit',  'name' => 'redoslot' . $slot,
                  'value' => get_string('redoquestion', 'quiz'), 'class' => 'mod_quiz-redo_question_button');
          if ($disabled) {
              $attributes['disabled'] = 'disabled';
          }
          return html_writer::div(html_writer::empty_tag('input', $attributes));
      }
code: public function redo_question_button($slot, $disabled) {
          $attributes = array('type' => 'submit',  'name' => 'redoslot' . $slot,
                  'value' => get_string('redoquestion', 'quiz'), 'class' => 'mod_quiz-redo_question_button');
          if ($disabled) {
              $attributes['disabled'] = 'disabled';
          }
          return html_writer::div(html_writer::empty_tag('input', $attributes));
      }
code_tokens: public function redo_question_button ( $ slot , $ disabled ) { $ attributes = array ( 'type' => 'submit' , 'name' => 'redoslot' . $ slot , 'value' => get_string ( 'redoquestion' , 'quiz' ) , 'class' => 'mod_quiz-redo_question_button' ) ; if ( $ disabled ) { $ attributes [ 'disabled' ] = 'disabled' ; } return html_writer :: div ( html_writer :: empty_tag ( 'input' , $ attributes ) ) ; }
docstring: Render a button which allows students to redo a question in the attempt.
  
  @param int $slot the number of the slot to generate the button for.
  @param bool $disabled if true, output the button disabled.
  @return string HTML fragment.
docstring_tokens: Render a button which allows students to redo a question in the attempt .