You are here

function _webform_addressfield_default_values in Addressfield Tokens 7

1 call to _webform_addressfield_default_values()
_webform_render_addressfield in ./addressfield_tokens.components.inc
Render a Webform component to be part of a form.

File

./addressfield_tokens.components.inc, line 178
Webform Component information for an address field type.

Code

function _webform_addressfield_default_values($available, $component) {
  $default_country = !empty($component['extra']['default_country']) ? $component['extra']['default_country'] : addressfield_tokens_default_country();
  $default_values = array(
    'country' => $default_country,
    'name_line' => '',
    'first_name' => '',
    'last_name' => '',
    'organisation_name' => '',
    'administrative_area' => '',
    'sub_administrative_area' => '',
    'locality' => '',
    'dependent_locality' => '',
    'postal_code' => '',
    'thoroughfare' => '',
    'premise' => '',
    'sub_premise' => '',
    'data' => '',
  );
  return $default_values;
}