You are here

function _equalheights_selector_fold in Equal Heights jQuery 7.2

Remove newlines from selector.

New lines are not allowed in the jQuery selector. Queries like: jQuery(".region\n .header"); fail.

2 calls to _equalheights_selector_fold()
equalheights_admin_submit in ./equalheights.admin.inc
_equalheights_selector_unfold in ./equalheights.admin.inc
Make a better user readable version of the selector.

File

./equalheights.admin.inc, line 116
Provides the administration page for Equal Heights.

Code

function _equalheights_selector_fold($selector) {
  return trim(trim(preg_replace(array(
    "/\\s+/",
    "/\n/",
    "/\r/",
  ), ' ', $selector)), ',');
}