function commerce_stock_ui_forms in Commerce Stock 7.2
Implements hook_forms().
The stock rule forms that that will be modified with the correct event value.
File
- ./
commerce_stock_ui.module, line 133 - Commerce stock UI.
Code
function commerce_stock_ui_forms($form_id, $args) {
$forms = array();
$forms['commerce_stock_ui_add_cart_state_rule_form'] = array(
'callback' => 'rules_admin_add_reaction_rule',
);
$forms['commerce_stock_ui_add_cart_action_rule_form'] = array(
'callback' => 'rules_admin_add_reaction_rule',
);
$forms['commerce_stock_ui_add_checkout_rule_form'] = array(
'callback' => 'rules_admin_add_reaction_rule',
);
$forms['commerce_stock_ui_stock_control_rule_form'] = array(
'callback' => 'rules_admin_add_reaction_rule',
);
return $forms;
}