You are here

function hierarchical_select_common_add_views_js in Hierarchical Select 6.3

Helper function that adds the JS to make Hierarchical Select work when used as a Views exposed filter.

2 calls to hierarchical_select_common_add_views_js()
hs_taxonomy_views_form_alter in modules/hs_taxonomy_views.module
Implementation of hook_form_alter().
hs_taxonomy_views_handler_filter_term_node_tid::init in modules/hs_taxonomy_views_handler_filter_term_node_tid.inc

File

includes/common.inc, line 373
Functions used by more than one Hierarchical Select implementation.

Code

function hierarchical_select_common_add_views_js() {
  static $js_added;
  if (!isset($js_added)) {
    drupal_add_js(drupal_get_path('module', 'hierarchical_select') . '/includes/views.js', 'module');
  }
}