void HTML_QuickForm::applyFilter (
mixed $element
, mixed $filter
)
Applies a data filter for the given field(s). Filter is applied recursively.
$element
Form element name or array of such names. Special name '__ALL__'
means all the form elements.
$filter
Callback, either function name or array(&$object, 'method')
Error code | Error message | Reason | Solution |
---|---|---|---|
QUICKFORM_INVALID_FILTER | Callback function does not exist in QuickForm::applyFilter() | 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.