You are here

function _jquery_ui_multiselect_widget_get_settings in jQuery UI MultiSelect Widget 7

Specifies the commerce_powl AJAX Settings.

Return value

array Array of configuration variables to be made available in JavaScript.

1 call to _jquery_ui_multiselect_widget_get_settings()
jquery_ui_multiselect_widget_init in ./jquery_ui_multiselect_widget.module
Implements HOOK_init().

File

./jquery_ui_multiselect_widget.module, line 152
jquery_ui_multiselect_widget module.

Code

function _jquery_ui_multiselect_widget_get_settings() {
  $module_path = drupal_get_path('module', 'jquery_ui_multiselect_widget');
  return array(
    'module_path' => $module_path,
    'multiple' => variable_get('jquery_ui_multiselect_widget_multiple', FALSE),
    'filter' => variable_get('jquery_ui_multiselect_widget_filter', FALSE),
    'subselector' => check_plain(variable_get('jquery_ui_multiselect_widget_subselector', '')),
    // Represents the default settings of the jquery module. TODO: Add them to
    // admin configuration.
    'selectedlist' => variable_get('jquery_ui_multiselect_widget_selectedlist', 4),
    'multiple' => variable_get('jquery_ui_multiselect_widget_multiple', TRUE),
    'autoOpen' => variable_get('jquery_ui_multiselect_widget_autoOpen', FALSE),
    'header' => variable_get('jquery_ui_multiselect_widget_header', TRUE),
    'height' => variable_get('jquery_ui_multiselect_widget_height', 175),
    'classes' => variable_get('jquery_ui_multiselect_widget_classes', ''),
    'filter_auto_reset' => variable_get('jquery_ui_multiselect_widget_filter_auto_reset', FALSE),
    'filter_width' => variable_get('jquery_ui_multiselect_widget_filter_width', 100),
    'jquery_ui_multiselect_widget_path_match_exclude' => variable_get('jquery_ui_multiselect_widget_path_match_exclude', ''),
  );
}