function webform_conditional_prepare_productfield_type_js in Commerce Webform 7.2
Same name and namespace in other branches
- 8 productfield.inc \webform_conditional_prepare_productfield_type_js()
Prepare a conditional value for adding as a JavaScript setting.
Parameters
string $rule_value: The rule value will be a product type (bundle).
Return value
array An array of product ids which can be set on the productfield for this rule to trigger.
1 string reference to 'webform_conditional_prepare_productfield_type_js'
- _commerce_webform_conditional_operator_info in ./
productfield.inc - Define conditional operators for productfields.
File
- ./
productfield.inc, line 953
Code
function webform_conditional_prepare_productfield_type_js($rule_value) {
return _webform_productfield_product_ids_from_type($rule_value);
}