Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
75c5ec2b
Commit
75c5ec2b
authored
Sep 08, 2006
by
Neil Drumm
Browse files
#82861
by RobRoy. Move watchdog overview variables to the right place.
parent
82ca828b
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/watchdog/watchdog.module
View file @
75c5ec2b
...
...
@@ -85,11 +85,6 @@ function watchdog_user($op, &$edit, &$user) {
}
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'
)));
$classes
=
array
(
WATCHDOG_NOTICE
=>
'watchdog-notice'
,
WATCHDOG_WARNING
=>
'watchdog-warning'
,
WATCHDOG_ERROR
=>
'watchdog-error'
);
$names
[
'all'
]
=
t
(
'all messages'
);
foreach
(
_watchdog_get_message_types
()
as
$type
)
{
$names
[
$type
]
=
t
(
'!type messages'
,
array
(
'!type'
=>
t
(
$type
)));
...
...
@@ -114,6 +109,11 @@ function watchdog_form_overview() {
* Menu callback; displays a listing of log messages.
*/
function
watchdog_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'
)));
$classes
=
array
(
WATCHDOG_NOTICE
=>
'watchdog-notice'
,
WATCHDOG_WARNING
=>
'watchdog-warning'
,
WATCHDOG_ERROR
=>
'watchdog-error'
);
$output
=
drupal_get_form
(
'watchdog_form_overview'
);
$header
=
array
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment