original_string: public function edit_field_set_default($mform) {
          $key = $this->field->defaultdata;
          if (isset($this->options[$key]) || ($key = array_search($key, $this->options)) !== false){
              $defaultkey = $key;
          } else {
              $defaultkey = '';
          }
          $mform->setDefault($this->inputname, $defaultkey);
      }
code: public function edit_field_set_default($mform) {
          $key = $this->field->defaultdata;
          if (isset($this->options[$key]) || ($key = array_search($key, $this->options)) !== false){
              $defaultkey = $key;
          } else {
              $defaultkey = '';
          }
          $mform->setDefault($this->inputname, $defaultkey);
      }
code_tokens: public function edit_field_set_default ( $ mform ) { $ key = $ this -> field -> defaultdata ; if ( isset ( $ this -> options [ $ key ] ) || ( $ key = array_search ( $ key , $ this -> options ) ) !== false ) { $ defaultkey = $ key ; } else { $ defaultkey = '' ; } $ mform -> setDefault ( $ this -> inputname , $ defaultkey ) ; }
docstring: Set the default value for this field instance
  Overwrites the base class method.
  @param moodleform $mform Moodle form instance
docstring_tokens: Set the default value for this field instance Overwrites the base class method .