You are here

function hs_taxonomy_views_json in Hierarchical Select 6.3

Menu callback; wrapper around hierarchical_select_json, with support for preloading the view thats is referenced from within the form.

Parameters

$view_name: The name of the view to load.

$display_id: The ID of a display to execute.

1 string reference to 'hs_taxonomy_views_json'
hs_taxonomy_views_menu in modules/hs_taxonomy_views.module
Implementation of hook_menu().

File

modules/hs_taxonomy_views.module, line 146
Implementation of the Hierarchical Select API for the Taxonomy module's Views exposed filters.

Code

function hs_taxonomy_views_json($view_name, $display_id) {
  $view = views_get_view($view_name);
  if ($view != NULL) {
    $view
      ->execute_display($display_id);
    views_set_current_view($view);
  }
  return hierarchical_select_json();
}