You are here

function jquery_ui_filter_dialog_get_features in jQuery UI filter 7

Same name and namespace in other branches
  1. 6 dialog/jquery_ui_filter_dialog.module \jquery_ui_filter_dialog_get_features()

Get jQuery UI dialog features.

4 calls to jquery_ui_filter_dialog_get_features()
jquery_ui_filter_dialog_close in dialog/jquery_ui_filter_dialog.module
Menu callback; Close jQuery UI dialog
jquery_ui_filter_dialog_form_alter in dialog/jquery_ui_filter_dialog.module
Implementation of hook_form_alter().
jquery_ui_filter_preprocess_html in dialog/jquery_ui_filter_dialog.module
Implements hook_preprocess_html().
jquery_ui_filter_preprocess_page in dialog/jquery_ui_filter_dialog.module
Implements hook_preprocess_page().

File

dialog/jquery_ui_filter_dialog.module, line 243
Opens links inside a jQuery UI dialog widget.

Code

function jquery_ui_filter_dialog_get_features() {
  static $features;
  if (isset($features)) {
    return $features;
  }
  $options = jquery_ui_filter_dialog_get_options();
  if (empty($_GET['dialogFeatures']) || $_GET['dialogFeatures'] == '1') {
    $features = $options['dialogFeatures'];
  }
  else {
    $features = _jquery_ui_filter_array_merge($options['dialogFeatures'], jquery_ui_filter_dialog_parse_features($_GET['dialogFeatures']));
  }
  return $features;
}