Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My site has many temporary
and youtube
files. I don't want those to be listed in the report.
I added this in alpha2:
if ($schemes = array_filter(variable_get('auditfiles_report_schemes', array()))) {
$or = db_or();
foreach ($schemes as $scheme) {
$or->condition('uri', $scheme . '://%', 'like');
}
$query->condition($or);
}
but that's not how the query works anymore in dev, so that won't work.
I think it's a very useful addition, but I'll just keep my hacked 3.0-alpha2 =)
Comment | File | Size | Author |
---|---|---|---|
#3 | auditfiles-exclude_unselected_schemes-2665250-3-D7.patch | 1.51 KB | oadaeh |
Comments
Comment #2
oadaeh CreditAttribution: oadaeh at Hook 42 commentedI had meant to make sure this wasn't happening, but unfortunately, I didn't write it down or record it anywhere, and so it slipped my mind.
I think it would be best in the exclusions function, and so that's where I will put the code.
Also, it should be in both the Not in database and Not on server reports.
Comment #3
oadaeh CreditAttribution: oadaeh at Hook 42 commentedThe attached patch fixes the problem.
It was only the Not in database report.
See if it also fixes the problem.
Comment #5
oadaeh CreditAttribution: oadaeh at Hook 42 commentedThe patch was committed to the 3.x-dev branch.
A 7.x-3.0 release that includes it will be created momentarily.