Chinese identity card - 身份证

Component ID

2513696

Component name

Chinese identity card - 身份证

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

1137

Component created

Component changed

Component body

The Chinese Identity Card module is a small module and provide a field type for this module

But it's useful for entering ID Card in china. And provide a validation function inside code, No need to install field validation module or using drupal form alter api to add validation handler.

This module using text form element, And adding a module defined widget.

Now this module only accepts valid ID Numbers in china (For example: 511702197701193532 or 320311770706001).

This module also supports third party service to validate the ID card. Just implement hook_chinese_identity_card_validate().

Drupal8 version:

Now this version is still in development.