function br_tax_number_fields_field_widget_info in Brazilian IDs 7
Implements hook_field_widget_info().
File
- ./
br_tax_number_fields.module, line 57 - Adds Brazilian Tax Number field widgets to text field type at the Field UI and creates new form element types for use in the Form API.
Code
function br_tax_number_fields_field_widget_info() {
return array(
'number_cnpj' => array(
'label' => t('CNPJ'),
'field types' => array(
'text',
),
),
'number_cpf' => array(
'label' => t('CPF'),
'field types' => array(
'text',
),
),
'number_cnpj_cpf' => array(
'label' => t('CNPJ / CPF'),
'field types' => array(
'text',
),
),
);
}