You are here

function international_phone_field_info in International Phone Field 7

Same name and namespace in other branches
  1. 7.2 international_phone.module \international_phone_field_info()

Implements hook_field_info().

File

./international_phone.module, line 11
Allow users to add international phone fields with a entity.

Code

function international_phone_field_info() {
  return array(
    'international_phone' => array(
      'label' => t('International Phone'),
      'instance_settings' => array(
        'international_phone_country_code' => 0,
        'international_phone_default_country_code' => '1',
        'international_phone_int_max_length' => 15,
      ),
      'default_formatter' => 'international_phone',
      'default_widget' => 'international_phone_textfield',
      'property_type' => 'text',
    ),
  );
}