opt['optional'])) { $attr['required'] = 'required'; } $this->tpl = form_makePasswordField('@@NAME@@', '@@DISPLAY@@', '@@ID@@', '@@CLASS@@', $attr); if(!isset($this->opt['optional'])){ $this->tpl['class'] .= ' required'; } } }