original_string: public function edit_field_set_default($mform) {
          if (!empty($this->field->defaultdata)) {
              $mform->setDefault($this->inputname, $this->field->defaultdata);
          }
      }
code: public function edit_field_set_default($mform) {
          if (!empty($this->field->defaultdata)) {
              $mform->setDefault($this->inputname, $this->field->defaultdata);
          }
      }
code_tokens: public function edit_field_set_default ( $ mform ) { if ( ! empty ( $ this -> field -> defaultdata ) ) { $ mform -> setDefault ( $ this -> inputname , $ this -> field -> defaultdata ) ; } }
docstring: Sets the default data for the field in the form object
  @param  moodleform $mform instance of the moodleform class
docstring_tokens: Sets the default data for the field in the form object