You are here

function conditional_fields_add_js in Conditional Fields 5

Same name and namespace in other branches
  1. 6.2 conditional_fields.module \conditional_fields_add_js()
  2. 6 conditional_fields.module \conditional_fields_add_js()

Adds javascript to the node editing form

1 call to conditional_fields_add_js()
conditional_fields_node_editing_form in ./conditional_fields.module
Alteration of the node editing form

File

./conditional_fields.module, line 758

Code

function conditional_fields_add_js($settings) {
  drupal_add_js(array(
    'ConditionalFields' => $settings,
  ), 'setting');
  drupal_add_js(drupal_get_path('module', 'conditional_fields') . '/conditional_fields.js');
}