You are here

function _webform_table_addressfield in Addressfield Tokens 7

Return the result of a component value for display in a table.

The output of this function will be displayed under the "Results" tab then "Table".

Parameters

mixed $component: A Webform component array.

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

Return value

string Textual output formatted for human reading.

File

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

Code

function _webform_table_addressfield($component, $value) {
  $address = _addressfield_tokens_expand_value($value);
  if ($address) {
    return theme('addressfield_formatter', array(
      'address' => $address,
    ));
  }
  return '';
}