function _webform_submit_product in Ubercart Webform Integration 6
Same name and namespace in other branches
- 7.3 components/product.inc \_webform_submit_product()
- 7.2 components/product.inc \_webform_submit_product()
Implementation of _webform_submit_component().
File
- components/
product.inc, line 226 - Webform module product component.
Code
function _webform_submit_product($component, $value) {
$return[0] = 'product';
if (!empty($value)) {
// Save the nid of the product
$return[1] = $component['extra']['product'];
// Save the quantity.
$return[2] = $value;
return $return;
}
else {
// Save the nid of the product.
$return[1] = $component['extra']['product'];
// Save the quantity.
$return[2] = 0;
return $return;
}
}