You are here

function shs_js in Simple hierarchical select 7

Implements hook_js().

File

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

Code

function shs_js() {
  $settings = array(
    'json' => array(
      'callback' => 'shs_json',
      'access callback' => 'user_access',
      'access arguments' => array(
        'access content',
      ),
      'includes' => array(
        'path',
      ),
      'dependencies' => array(
        'taxonomy',
        'field',
        'field_sql_storage',
      ),
    ),
  );
  drupal_alter('shs_js_info', $settings);
  return $settings;
}