You are here

function hs_taxonomy_views_menu in Hierarchical Select 6.3

Same name and namespace in other branches
  1. 5.3 modules/hs_taxonomy_views.module \hs_taxonomy_views_menu()

Implementation of hook_menu().

File

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

Code

function hs_taxonomy_views_menu() {
  $items = array();
  $items["admin/build/views/hs_config/%views_ui_cache/%/%"] = array(
    'title' => 'Hierarchical Select configuration',
    'title callback' => 'hs_taxonomy_views_config_title',
    'title arguments' => array(
      4,
      5,
      6,
    ),
    'page callback' => 'hs_taxonomy_views_config',
    'page arguments' => array(
      4,
      5,
      6,
    ),
    'access arguments' => array(
      'administer views',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['hs_taxonomy_views_json/%/%'] = array(
    'page callback' => 'hs_taxonomy_views_json',
    'page arguments' => array(
      1,
      2,
    ),
    'type' => MENU_CALLBACK,
    // TODO: Needs improvements. Ideally, this would inherit the permissions
    // of the form the Hierarchical Select was in.
    'access callback' => TRUE,
  );
  return $items;
}