Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
dblog.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2009 at 12:07 UTC
Updated:
16 Oct 2009 at 18:51 UTC
the attached patch makes dblog module to support two new hooks log_filters and log_filters_validate
this will allow other modules to provide their own filters to improve "Recent log" report filtering
as an example dblog_time_filters (also attached) is a module taking advantage of this which provides filter capability by "recent" and "aged" being both configurable (an array of integers interpreted as minutes is formated as a more readable text)
to illustrate this, the image attached shows dblog_time_filters module taking advange of log_filters and log_filters_validate
PS: this is the 6.x version of #582622: provide hook for dblog_filters
| Comment | File | Size | Author |
|---|---|---|---|
| 2009-09-20_dblog_time_filters.png | 11.35 KB | arhak | |
| 2009-09-20_dblog_time_filters.zip | 2.6 KB | arhak | |
| 2009-09-20_dblog_log_filters_hook.patch | 5.23 KB | arhak |
Comments
Comment #1
arhak commentedanother related issues
#251814: Add time based filter on watchdog overview page (D7)
#578488: recent/aged/username/hostname filters for log entries (D6)
Comment #2
grendzy commentedNew features go to Drupal 8.x.
Comment #3
grendzy commentedwhoops, didn't see the link to #582622: provide hook for dblog_filters.
arhak: The usual process is that issues are addressed for the newest version of Drupal first. If it's a bug, then it can be backported to stable releases of Drupal. Backports are generally addressed in the same issue by changing the version field.
Comment #4
arhak commentedwell, this started as a new features being added to D6 in two ways: through modules and through patch
the patch version was a lot more clean solution, thus it was provided as a patch for D7 as well
this is just a D6 patch version for testing purposes or whatever someone might need
since the more recommended solution would be the
dblog_extmodule at #578488: recent/aged/username/hostname filters for log entries