function _commerce_map_rules_parameters_old_new in Commerce Core 7
Maps old action and condition parameter names to new prefixed names.
1 call to _commerce_map_rules_parameters_old_new()
- _commerce_update_rule_tokens in ./
commerce.install - Given a Rule configuration, iterates over its settings to update parameter names to use the new prefixed names and parameter values to use the new prefixed tokens that match the new event variable names.
File
- ./
commerce.install, line 215
Code
function _commerce_map_rules_parameters_old_new() {
return array(
'order' => 'commerce_order',
'order_unchanged' => 'commerce_order_unchanged',
'product' => 'commerce_product',
'product_unchanged' => 'commerce_product_unchanged',
'line_item' => 'commerce_line_item',
'line_item_unchanged' => 'commerce_line_item_unchanged',
'customer_profile' => 'commerce_customer_profile',
'customer_profile_unchanged' => 'commerce_customer_profile_unchanged',
'payment_transaction' => 'commerce_payment_transaction',
'payment_transaction_unchanged' => 'commerce_payment_transaction_unchanged',
);
}