You are here

function _addressfield_tokens_expand_value in Addressfield Tokens 7

Expand a raw address submission as loaded from the database to an array.

Parameters

string $value: An array of information containing the submission result, directly correlating to the {webform_submitted_data} database schema.

Return value

array|false An associative array of address fields, or FALSE on failure.

4 calls to _addressfield_tokens_expand_value()
_webform_csv_data_addressfield in ./addressfield_tokens.components.inc
Format the submitted data of a component for CSV downloading.
_webform_display_addressfield in ./addressfield_tokens.components.inc
Display the result of a submission for a component.
_webform_render_addressfield in ./addressfield_tokens.components.inc
Render a Webform component to be part of a form.
_webform_table_addressfield in ./addressfield_tokens.components.inc
Return the result of a component value for display in a table.

File

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

Code

function _addressfield_tokens_expand_value($value) {
  if (isset($value[0]) && is_string($value[0])) {
    return unserialize($value[0]);
  }
  return FALSE;
}