You are here

function shs_menu in Simple hierarchical select 7

Implements hook_menu().

File

./shs.module, line 11
Provides an additional widget for term fields to create hierarchical selects.

Code

function shs_menu() {
  $items = array();

  // Create menu item for JSON callbacks.
  $items['js/shs'] = array(
    'title' => 'JSON callback',
    'description' => 'JSON callbacks for Simple hierarchical select',
    'page callback' => 'shs_json',
    'access callback' => 'user_access',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}