You are here

function _webform_defaults_phone in Webform Phone Number 7

Same name and namespace in other branches
  1. 7.2 webform_phone.components.inc \_webform_defaults_phone()

Implements _webform_defaults_component().

1 call to _webform_defaults_phone()
_form_builder_webform_form_builder_types_phone in ./webform_phone.components.inc
Implements _form_builder_webform_form_builder_types_component().

File

./webform_phone.components.inc, line 9
Webform Component information for a phone number field type

Code

function _webform_defaults_phone() {
  return array(
    'name' => '',
    'form_key' => NULL,
    'required' => 0,
    'mandatory' => 0,
    'pid' => 0,
    'weight' => 0,
    'value' => '',
    'extra' => array(
      'title_display' => 0,
      'width' => '',
      'disabled' => FALSE,
      'private' => FALSE,
      'attributes' => array(),
      'description' => '',
      'placeholder' => '',
      'country' => 'ca',
      'phone_country_code' => 0,
      'phone_default_country_code' => 1,
      'phone_int_max_length' => 15,
      'ca_phone_separator' => '-',
      'ca_phone_parentheses' => 1,
    ),
  );
}