/** * Creates a VALUE attribute for a form input and returns it in this format: [ value="VALUE"] * * @param string $FieldName The name of the field that contains the value in $this->_DataArray. * @param array $Attributes An associative array of attributes for the input. ie. maxlength, onclick, * class, etc. If $Attributes contains a 'value' key, it will override the * one automatically generated by $FieldName. * @return string */ protected function _valueAttribute($FieldName, $Attributes) { // Value from $Attributes overrides the datasource and the postback. return ' value="' . Gdn_Format::form(arrayValueI('value', $Attributes, $this->getValue($FieldName))) . '"'; }