You are here

function phone_field_widget_info in Phone 7.2

Same name and namespace in other branches
  1. 7 phone.module \phone_field_widget_info()

Implements hook_field_widget_info().

File

./phone.module, line 825
The phone module lets administrators use a phone number field type.

Code

function phone_field_widget_info() {
  return array(
    'phone' => array(
      'label' => t('Phone'),
      'field types' => array(
        'phone',
      ),
      'settings' => array(
        'country_code_position' => 'before',
        'numbertype_allowed_values_position' => 'before',
        'number_size' => 30,
        'extension_size' => 7,
        'use_tel_input' => TRUE,
        'label_position' => 'none',
      ),
    ),
  );
}