This module provides a text field to enter a South African ID number that will get validated.
The field is provided through the field API, so i can be used on content types as a normal textfield is used.
The field has a setting to specify that it must validate the ID, otherwise it will throw an error on the form.

There is also a API function southafrican_id_validate_id($id) that other modules can use to validate a ID number. The function returns TRUE or FALSE to specify validity of number.

This module is only for Drupal 7

TODO:

  1. Extract date of birth from number
  2. Extract gender from number
  3. Extract citizen type from number

Project information

Releases