You are here

function field_nif_field_info in Field NIF 7

Implements hook_field_info().

File

./field_nif.module, line 11

Code

function field_nif_field_info() {
  return array(
    'nif' => array(
      'label' => t('NIF/CIF/NIE'),
      'description' => t('Stores and validates an NIF/CIF/NIE field.'),
      'default_widget' => 'nif_data',
      'default_formatter' => 'nif_default',
      'instance_settings' => array(
        'supported_numbers' => array(
          'nif',
          'cif',
          'nie',
        ),
      ),
      'property_type' => 'nif',
      'property_callbacks' => array(
        'field_nif_property_info_callback',
      ),
    ),
  );
}