summaryrefslogtreecommitdiff
path: root/modules/watchdog/watchdog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-08-18 18:58:47 +0000
committerDries Buytaert <dries@buytaert.net>2006-08-18 18:58:47 +0000
commit7de41539df93abeea427c1aa83ee7e13684a4fc6 (patch)
treecbe403960892b0f34dbc2674bd068686b6b22693 /modules/watchdog/watchdog.module
parente2f42cf3d544bc90accaab9eff800277ac60c9f1 (diff)
downloadbrdo-7de41539df93abeea427c1aa83ee7e13684a4fc6.tar.gz
brdo-7de41539df93abeea427c1aa83ee7e13684a4fc6.tar.bz2
- Patch #77919 by chx, eaton, moshe, et al: enable programmaticaly submitted forms via the pull model.
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(
' ',