You are here

function phone_field_info in Phone 7

Same name and namespace in other branches
  1. 5 phone.module \phone_field_info()
  2. 6 phone.module \phone_field_info()
  3. 7.2 phone.module \phone_field_info()

Implementation of hook_field_info().

File

./phone.module, line 59

Code

function phone_field_info() {
  return array(
    'phone' => array(
      'label' => t('Phone Number'),
      'instance_settings' => array(
        'phone_country_code' => 0,
        'phone_default_country_code' => '1',
        'phone_int_max_length' => 15,
        'ca_phone_separator' => '-',
        'ca_phone_parentheses' => 1,
      ),
      'default_formatter' => 'phone',
      'default_widget' => 'phone_textfield',
      'property_type' => 'text',
    ),
  );
}