Skip to content

Zakay/drupal-nif-nie-cif-validator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal NIF/NIE/CIF Validator

Implements additional validations to verify the control digit of NIFs, NIEs and CIFs in your Drupal Webforms.

How to use it

This module adds some extra validations to Drupal's Webform Validation module. So you better take a look at its documentation.

Once you've installed and activated it, you'll find a few new validation options. To find them, go to your Content menu and edit a webform (or create a new one). Then, go to the Webform tab and open the Form Validation option. There, you'll find new validations for NIFs, NIEs and CIFs.

New Validations

You must choose one of this validations -let's say Validate NIF, for instance- and, then, specify the field you want to validate.

Add Rule

That's all! :-) Now, if you try to send the form using a non-valid number, Drupal won't accept it.

Validation

Dependencies

Related Drupal Modules

A similar Drupal Module you may be interested in is the Field NIF module.

License

Amnesty / DataQuality functions. Copyright (C) 2013 Amnesty International.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program (see LICENSE.txt). If not, see http://www.gnu.org/licenses/.

About

NIF/NIE/CIF validations for the Drupal Webform Validation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%