original_string: protected function add_event_repeat_elements($mform) {
          $mform->addElement('checkbox', 'repeat', get_string('repeatevent', 'calendar'), null);
          $mform->addElement('text', 'repeats', get_string('repeatweeksl', 'calendar'), 'maxlength="10" size="10"');
          $mform->setType('repeats', PARAM_INT);
          $mform->setDefault('repeats', 1);
          $mform->disabledIf('repeats', 'repeat', 'notchecked');
          $mform->setAdvanced('repeat');
          $mform->setAdvanced('repeats');
      }
code: protected function add_event_repeat_elements($mform) {
          $mform->addElement('checkbox', 'repeat', get_string('repeatevent', 'calendar'), null);
          $mform->addElement('text', 'repeats', get_string('repeatweeksl', 'calendar'), 'maxlength="10" size="10"');
          $mform->setType('repeats', PARAM_INT);
          $mform->setDefault('repeats', 1);
          $mform->disabledIf('repeats', 'repeat', 'notchecked');
          $mform->setAdvanced('repeat');
          $mform->setAdvanced('repeats');
      }
code_tokens: protected function add_event_repeat_elements ( $ mform ) { $ mform -> addElement ( 'checkbox' , 'repeat' , get_string ( 'repeatevent' , 'calendar' ) , null ) ; $ mform -> addElement ( 'text' , 'repeats' , get_string ( 'repeatweeksl' , 'calendar' ) , 'maxlength="10" size="10"' ) ; $ mform -> setType ( 'repeats' , PARAM_INT ) ; $ mform -> setDefault ( 'repeats' , 1 ) ; $ mform -> disabledIf ( 'repeats' , 'repeat' , 'notchecked' ) ; $ mform -> setAdvanced ( 'repeat' ) ; $ mform -> setAdvanced ( 'repeats' ) ; }
docstring: Add the repeat elements for the form when creating a new event.
  
  @param MoodleQuickForm $mform
docstring_tokens: Add the repeat elements for the form when creating a new event .