function dblog_filters in Drupal 6
Same name and namespace in other branches
- 8 core/modules/dblog/dblog.admin.inc \dblog_filters()
- 7 modules/dblog/dblog.admin.inc \dblog_filters()
- 9 core/modules/dblog/dblog.admin.inc \dblog_filters()
List dblog administration filters that can be applied.
3 calls to dblog_filters()
- dblog_build_filter_query in modules/
dblog/ dblog.admin.inc - Build query for dblog administration filters based on session.
- dblog_filter_form in modules/
dblog/ dblog.admin.inc - Return form for dblog administration filters.
- dblog_filter_form_submit in modules/
dblog/ dblog.admin.inc - Process result from dblog administration filter form.
File
- modules/
dblog/ dblog.admin.inc, line 213 - Administrative page callbacks for the dblog module.
Code
function dblog_filters() {
$filters = array();
foreach (_dblog_get_message_types() as $type) {
$types[$type] = t($type);
}
if (!empty($types)) {
$filters['type'] = array(
'title' => t('Type'),
'where' => "w.type = '%s'",
'options' => $types,
);
}
$filters['severity'] = array(
'title' => t('Severity'),
'where' => 'w.severity = %d',
'options' => watchdog_severity_levels(),
);
return $filters;
}