You are here

function hierarchical_select_admin_settings in Hierarchical Select 5.2

Same name and namespace in other branches
  1. 5.3 hierarchical_select.admin.inc \hierarchical_select_admin_settings()
  2. 6.3 hierarchical_select.admin.inc \hierarchical_select_admin_settings()
  3. 7.3 hierarchical_select.admin.inc \hierarchical_select_admin_settings()

Form definition; admin settings.

1 string reference to 'hierarchical_select_admin_settings'
hierarchical_select_menu in ./hierarchical_select.module
Implementation of hook_menu().

File

./hierarchical_select.module, line 272
This module defines the "hierarchical_select" form element, which is a greatly enhanced way for letting the user select an option in a hierarchy.

Code

function hierarchical_select_admin_settings() {
  $form['description'] = array(
    '#value' => t('All settings below will be used as site-wide defaults.'),
    '#prefix' => '<div>',
    '#suffix' => '</div>',
  );
  $form['hierarchical_select_animation_delay'] = array(
    '#type' => 'textfield',
    '#title' => t('Animation delay'),
    '#description' => t('The delay that will be used for the "drop in/out" effect when a
      hierarchical select is being updated (in milliseconds).'),
    '#size' => 5,
    '#maxlength' => 5,
    '#default_value' => variable_get('hierarchical_select_animation_delay', 400),
  );
  $form['hierarchical_select_level_labels_style'] = array(
    '#type' => 'select',
    '#title' => t('Level labels style'),
    '#description' => t('The style that will be used for level labels. This is not supported by
      all browsers! If you want a consistent interface, choose to use no
      style.'),
    '#options' => array(
      'none' => t('No style'),
      'bold' => t('Bold'),
      'inversed' => t('Inversed'),
      'underlined' => t('Underlined'),
    ),
    '#default_value' => variable_get('hierarchical_select_level_labels_style', 'none'),
  );
  return system_settings_form($form);
}