function vat_number_field_info in VAT Number 7
Implements hook_field_info().
File
- ./
vat_number.module, line 14 - Define a VAT Number field for use on Drupal Commerce Customer Profiles.
Code
function vat_number_field_info() {
return array(
'vat_number' => array(
'label' => t('VAT Number'),
'description' => t('This field stores a VAT number and validates it against the SOAP service.'),
'default_widget' => 'vat_number_widget',
'default_formatter' => 'vat_number_formatter',
// Integrate with the Entity Metadata module.
'property_type' => 'text',
),
);
}