function add_attrs_to_form()
 {
     //get attribute types
     $attr_types =& Attr_types::singleton();
     if (false === ($this->attr_types =& $attr_types->get_attr_types())) {
         return false;
     }
     //get list of attributes
     $this->attributes = array();
     foreach ($this->attr_types as $k => $v) {
         if ($v->fill_on_register()) {
             $this->attributes[] = $k;
         }
     }
     $opt = array();
     $opt['get_values'] = true;
     if (!is_null($this->opt['register_in_domain'])) {
         $opt['did'] = $this->opt['register_in_domain'];
     }
     if (false === Attributes::attrs_to_form($this->attributes, $this->f, $this->js_before, $this->js_after, $opt)) {
         return false;
     }
     $this->attr_values = $opt['attr_values'];
     return true;
 }