You are here

function uc_dropdown_attributes_build in Dropdown Attributes 6

Adds Javascript to the product pages.

1 string reference to 'uc_dropdown_attributes_build'
uc_dropdown_attributes_form_alter in ./uc_dropdown_attributes.module
Implements hook_form_alter().

File

./uc_dropdown_attributes.module, line 154
Show/hide attributes based on the values of other attributes.

Code

function uc_dropdown_attributes_build($form, &$form_state) {
  drupal_add_js(array(
    'uc_dropdown_attributes' => array(
      'cleanUrl' => variable_get('clean_url', 0),
    ),
  ), 'setting');
  drupal_add_js(drupal_get_path('module', 'uc_dropdown_attributes') . '/displayfields.js');
  return $form;
}