You are here

function _webform_table_view in Webform view 7

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

Implements _webform_table_COMPONENTNAME()

File

./webform_view.inc, line 364
Additional component for webform that allows views to be used as embeddable elements.

Code

function _webform_table_view($component, $raw_value) {
  if (!empty($raw_value)) {
    $structured_value = unserialize(reset($raw_value));

    // Set the value as a single string.
    // As this may be highly structured, abuse CSV delimiters and cram it all
    // together.
    return struct_to_plaintext($structured_value);
  }
  else {
    return '';
  }
}