void HTML_QuickForm::setConstants (
array $constantValues
= null
, mixed $filter
= null
)
Sets constant form values. These values won't be overridden by either default (set via setDefaults()) or submitted (POST or GET) values.
$constantValues
values used to fill the form, array('element name' => 'element value')
$filter
(optional) filter(s) to apply to all default values
Error code | Error message | Reason | Solution |
---|---|---|---|
QUICKFORM_INVALID_FILTER | Callback function does not exist in QuickForm::setConstants() | Tried to pass a name of a non-existant function as a callback | Check spelling |
since 2.0
This function can not be called statically.