/**
  * Initialize the form's fields with default values and visibilities.
  */
 public function load_with_defaults()
 {
     parent::load_with_defaults();
     /** @var ALBUM $folder */
     $folder = $this->_folder;
     $uploads_allowed = $folder->uploads_allowed();
     $this->set_required('file_name', !$uploads_allowed);
     $this->load_from_client('thumbnail_size', 200);
     $this->load_from_client('overwrite', true);
     $this->load_from_client('create_thumbnail', $uploads_allowed);
     $this->load_from_client('use_upload', $uploads_allowed);
     $this->load_from_client('read_exif', true);
 }
 /**
  * Initialize the form's fields with default values and visibilities.
  */
 public function load_with_defaults()
 {
     parent::load_with_defaults();
     $this->set_value('weather_type', 1);
     $this->set_value('lo_temp', 0);
     $this->set_value('hi_temp', 0);
 }