function _auditfiles_make_preg in Audit Files 6.2
Same name and namespace in other branches
- 5 auditfiles.module \_auditfiles_make_preg()
- 6.3 notindb.admin.inc \_auditfiles_make_preg()
- 7.4 auditfiles.notindatabase.inc \_auditfiles_make_preg()
- 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);
}