function commerce_discount_fields_ajax_callback in Commerce Discount 7
AJAX callback to attach the commerce discount fields to the form.
Since the controlling logic for populating the form is in the form builder function, all we do here is select the element and return it to be updated.
1 string reference to 'commerce_discount_fields_ajax_callback'
- commerce_discount_form in includes/
commerce_discount.admin.inc - Form callback: create or edit a discount.
File
- includes/
commerce_discount.admin.inc, line 361 - Commerce discount editing UI.
Code
function commerce_discount_fields_ajax_callback($form, &$form_state) {
return $form['commerce_discount_fields'];
}