Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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#min
and/or#max
).value_is_number
(with optional#min
and/or#max
).value_is_email
.value_is_username
(with optional#exists
for it is has to exist).- Fixes Drupal core's 'file' element
#required
bug, so now you can actually use#required
for non-managed files. - Improves Drupal core's 'checkboxes' element, so now you can use
#disabled_options
and#hidden_options
to customize your checkboxes/options list. (With server side validation!)
Project information
- Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects - No further development
No longer developed by its maintainers. - 663 sites report using this module
- Created by rudiedirkx on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.10
released 17 September 2014
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.