/**
  * Initialize the form's fields with default values and visibilities.
  */
 public function load_with_defaults()
 {
     parent::load_with_defaults();
     $this->set_value('send_as_html', $this->context->mail_options->send_as_html);
     if (isset($this->login)) {
         if (!$this->login->is_anonymous()) {
             $this->set_value('sender_name', $this->login->real_name());
             $this->set_value('sender_email', $this->login->email);
         }
     }
 }
 /**
  * Initialize the form's fields with default values and visibilities.
  */
 public function load_with_defaults()
 {
     parent::load_with_defaults();
     $this->set_value('id', read_var('id'));
 }