You are here

function _hierarchical_select_views_exposed_filters_reposition in Hierarchical Select 5

Same name and namespace in other branches
  1. 5.2 hierarchical_select.module \_hierarchical_select_views_exposed_filters_reposition()

Helper function that adds the JS to reposition the exposed filters of a View just once.

1 call to _hierarchical_select_views_exposed_filters_reposition()
taxonomy_hierarchical_select_form_alter in modules/taxonomy.inc
Implementation of hook_hierarchical_select_form_alter().

File

./hierarchical_select.module, line 302
This module defines the "hierarchical_select" form element, which is a greatly enhanced way for letting the user select an option in a hierarchy. Out of the box, this module supports the taxonomy and content_taxonomy modules, but that…

Code

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