This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Field Type validation¶
Validator schema¶
The schema for validator configuration should have a similar format to the settings schema, except it has an additional level, to group settings for a certain validation mechanism:
- The key on the 1st level is a string, identifying a validator
- Assigned to that is an associative array (2nd level) of settings
- This associative array has a string key for each setting of the validator
- It is assigned to a 3rd level associative array, the setting description
- This associative array should have the same format as for normal settings
For example, for the ezstring
type, the validator schema could be:
1 2 3 4 5 6 7 8 9 10 11 12 |
|