summaryrefslogtreecommitdiff
path: root/modules/watchdog/watchdog.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/watchdog/watchdog.module')
-rw-r--r--modules/watchdog/watchdog.module17
1 files changed, 10 insertions, 7 deletions
diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module
index ec33bb9d9..f93a2cd2a 100644
--- a/modules/watchdog/watchdog.module
+++ b/modules/watchdog/watchdog.module
@@ -83,10 +83,7 @@ function watchdog_user($op, &$edit, &$user) {
}
}
-/**
- * Menu callback; displays a listing of log messages.
- */
-function watchdog_overview() {
+function watchdog_form_overview() {
$icons = array(WATCHDOG_NOTICE => '',
WATCHDOG_WARNING => theme('image', 'misc/watchdog-warning.png', t('warning'), t('warning')),
WATCHDOG_ERROR => theme('image', 'misc/watchdog-error.png', t('error'), t('error')));
@@ -107,10 +104,16 @@ function watchdog_overview() {
'#options' => $names,
'#default_value' => $_SESSION['watchdog_overview_filter']
);
- $form['#action'] = url('admin/logs');
-
$form['submit'] = array('#type' => 'submit', '#value' =>t('Filter'));
- $output = drupal_get_form('watchdog_form_overview', $form);
+ $form['#redirect'] = FALSE;
+
+ return $form;
+}
+/**
+ * Menu callback; displays a listing of log messages.
+ */
+function watchdog_overview() {
+ $output = drupal_get_form('watchdog_form_overview');
$header = array(
' ',