You are here

function og_subgroups_hs_views_json in Subgroups for Organic groups 6

Menu callback; wrapper around hierarchical_select_json

See also

hs_taxonomy_views_json

1 string reference to 'og_subgroups_hs_views_json'
og_subgroups_hs_menu in modules/og_subgroups_hs/og_subgroups_hs.module
Implementation of hook_menu().

File

modules/og_subgroups_hs/og_subgroups_hs.module, line 35
Implementation of the Hierarchical Select API for the OG Subgroups module.

Code

function og_subgroups_hs_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();
}