You are here

function _auditfiles_preg_quote in Audit Files 5

Helper function: walk an array and preg_quote each entry Pass $makefilepath = TRUE to change elements to file paths at the same time

1 string reference to '_auditfiles_preg_quote'
_auditfiles_make_preg in ./auditfiles.module
Helper function: create an exclusion string for the preg

File

./auditfiles.module, line 447

Code

function _auditfiles_preg_quote(&$element, $key, $makefilepath = FALSE) {
  if ($makefilepath) {
    $element = file_create_path($element);
  }
  $element = preg_quote($element);
}