Value is
Component ID
1296948
Component name
Value is
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
18562
Component created
Component changed
Component body
Adds element validators to Drupal that that fit into Drupal's form API. Instead of writing the (almost) same _validate function over and over, you can use the element's #element_validate property when building a custom form. Drupal doesn't provide out-of-the-box functions to assign to that. (You'd still have to write the validation shell yourself.) This module does.
Implemented:
value_is_integer(with optional#minand/or#max).value_is_number(with optional#minand/or#max).value_is_email.value_is_username(with optional#existsfor it is has to exist).- Fixes Drupal core's 'file' element
#requiredbug, so now you can actually use#requiredfor non-managed files. - Improves Drupal core's 'checkboxes' element, so now you can use
#disabled_optionsand#hidden_optionsto customize your checkboxes/options list. (With server side validation!)
