Download & Extend

Brazilian Tax Number Fields

Formerly called Brazilian Ids.

This module adds CPF and CNPJ validation functionalities for CCK fields.

CPF and CNPJ are tax registration numbers granted to individuals (CPF) and companies (CNPJ) by the Brazilian ministry of revenue.

Learn more about them at wikipedia, CPF and CNPJ

Drupal 6

Coloque campos de CPF e CNPJ tanto no perfil de seus visitantes como em qualquer conteúdo usando o CCK. Ele valida os números e ainda formata.

Drupal 7

Forked from http://drupal.org/sandbox/drupalista-br/1262296

It adds 3 new widgets to the text field type at the Field UI.

They are:
CPF - Accepts only valid tax number of individuals
CNPJ - Accepts only valid tax number of companies
CPF / CNPJ - Accepts either one as long as it is a valid number

The view format display are done as followed:
CPF - 000.000.000-00
CNPJ - 00.000.000/0000-00

It also adds 3 new field types for the Form API.
They are:
number_cpf, number_cnpj and number_cnpj_cpf

So, developers can easily build form elements of Brazilian Tax Number types. For example:

  $form['my_cpf_field'] = array(
    '#type' => 'number_cpf',
    '#title' => t('CPF'),
  );
  $form['my_cnpj_field'] = array(
    '#type' => 'number_cnpj',
    '#title' => t('CNPJ'),
  );
  $form['my_cnpj_cpf_field'] = array(
    '#type' => 'number_cnpj_cpf',
    '#title' => t('CNPJ or CPF'),
  );

And that's it! You are done.

Drupal 6 Maintained by Wanderson S. Reis

Drupal 7 Maintained by Francisco Luz

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.0-beta5 tar.gz (13.95 KB) | zip (17.63 KB) 2010-Dec-27 Notes
5.x-1.2 tar.gz (9.37 KB) | zip (10.99 KB) 2008-Jan-24 Notes

Other releases

Version Downloads Date Links
7.x-1.0-alpha1 tar.gz (8 KB) | zip (8.57 KB) 2011-Aug-29 Notes

Development releases

Version Downloads Date Links
6.x-1.x-dev tar.gz (12.33 KB) | zip (14.19 KB) 2011-Feb-25 Notes

Project Information


Maintainers for Brazilian Tax Number Fields

  • FranciscoLuz - 1 commit
    last: 23 weeks ago, first: 23 weeks ago
  • wasare - 10 commits
    last: 1 year ago, first: 2 years ago
  • brmassa - 4 commits
    last: 4 years ago, first: 4 years ago

Issues for Brazilian Tax Number Fields

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 13 Sep 10