You are here

function _auditfiles_make_preg in Audit Files 6.2

Same name and namespace in other branches
  1. 5 auditfiles.module \_auditfiles_make_preg()
  2. 6.3 notindb.admin.inc \_auditfiles_make_preg()
  3. 7.4 auditfiles.notindatabase.inc \_auditfiles_make_preg()
  4. 7.3 auditfiles.notindatabase.inc \_auditfiles_make_preg()

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_make_preg'
_auditfiles_get_exclusions in ./notindb.admin.inc
Helper function: create an exclusion string for the preg

File

./notindb.admin.inc, line 322
Callback and functions to generate files not in database report

Code

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