You are here

function _jquery_ui_filter_dialog_process_replacer in jQuery UI filter 7

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

Jquery UI filter dialog process replacer: Add jQuery UI dialog class to links.

1 string reference to '_jquery_ui_filter_dialog_process_replacer'
_jquery_ui_filter_dialog_process_callback in dialog/jquery_ui_filter_dialog.module
Jquery UI filter dialog process callback.

File

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

Code

function _jquery_ui_filter_dialog_process_replacer($matches) {
  $attributes = _jquery_ui_filter_parse_tag_attributes($matches[0]);
  unset($attributes['target']);

  // Remove [dialog] from target
  $attributes['class'] .= 'jquery-ui-filter-dialog';
  return '<a' . drupal_attributes($attributes) . '>';
}