You are here

function postal_code_field_info in Postal Code 7

Implements hook_field_info().

File

./postal_code.module, line 121

Code

function postal_code_field_info() {
  return array(
    'postal_code' => array(
      'label' => t('Postal Code'),
      'description' => t('Postal Code field.'),
      'settings' => array(
        'max_length' => 16,
      ),
      'default_widget' => 'postal_code_any_postal_code_form',
      'default_formatter' => 'postal_code_simple_text',
    ),
  );
}