You are here

function uc_dropdown_attributes_dependent_callback in Dropdown Attributes 7

Same name and namespace in other branches
  1. 8 uc_dropdown_attributes.module \uc_dropdown_attributes_dependent_callback()

Callback for AJAX for the uc_dropdown_attributes_product form.

1 string reference to 'uc_dropdown_attributes_dependent_callback'
_uc_dropdown_attributes_form in ./dependent_dropdown.inc
Internal form constructor for administration of attribute dependencies.

File

./dependent_dropdown.inc, line 275
Administrative interface for specifying the attribute dependencies.

Code

function uc_dropdown_attributes_dependent_callback($form, $form_state) {
  $wrapper = explode('-', $form_state['triggering_element']['#ajax']['wrapper']);
  $attribute = $wrapper[1];
  return $form['attributes'][$attribute]['values'];
}