You are here

function _webform_table_product_list in Ubercart Webform Integration 7.2

Same name and namespace in other branches
  1. 6 components/product_list.inc \_webform_table_product_list()
  2. 7.3 components/product_list.inc \_webform_table_product_list()

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

File

components/product_list.inc, line 369
Webform module product_list component.

Code

function _webform_table_product_list($component, $value) {
  $results = '';
  if (isset($value)) {
    foreach ($value as $key => $product) {
      if ($key != 0) {
        $product_info = explode('_', $product, 2);
        $results .= "{$product_info[1]}<br />";
      }
    }
  }
  return $results;
}