diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-29 06:39:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-29 06:39:35 +0000 |
commit | 715a2d655f70675f3bec8a320a864865d6d02d47 (patch) | |
tree | fffff07032e77f118a4290fc62f290d91cf831f0 /modules/dblog | |
parent | 40c8986ac74b0ab15f0571c24052d1be06bd2ccb (diff) | |
download | brdo-715a2d655f70675f3bec8a320a864865d6d02d47.tar.gz brdo-715a2d655f70675f3bec8a320a864865d6d02d47.tar.bz2 |
- Patch #511748 by moshe weitzman: pushing rending to later in the cycle so there is more room for customization.
Diffstat (limited to 'modules/dblog')
-rw-r--r-- | modules/dblog/dblog.admin.inc | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/modules/dblog/dblog.admin.inc b/modules/dblog/dblog.admin.inc index 9e045acbb..1eab21f66 100644 --- a/modules/dblog/dblog.admin.inc +++ b/modules/dblog/dblog.admin.inc @@ -92,8 +92,13 @@ function dblog_overview() { $rows[] = array(array('data' => t('No log messages available.'), 'colspan' => 6)); } - $build['dblog_table'] = array('#markup' => theme('table', $header, $rows, array('id' => 'admin-dblog'))); - $build['dblog_pager'] = array('#markup' => theme('pager', NULL)); + $build['dblog_table'] = array( + '#theme' => 'table', + '#header' => $header, + '#rows' => $rows, + '#attributes' => array('id' => 'admin-dblog'), + ); + $build['dblog_pager'] = array('#theme' => 'pager'); return $build; } @@ -133,10 +138,14 @@ function dblog_top($type) { $rows[] = array(array('data' => t('No log messages available.'), 'colspan' => 2)); } - $output = theme('table', $header, $rows); - $output .= theme('pager', NULL); + $build['dblog_top_table'] = array( + '#theme' => 'table', + '#header' => $header, + '#rows' => $rows, + ); + $build['dblog_top_pager'] = array('#theme' => 'pager'); - return $output; + return $build; } /** @@ -144,7 +153,6 @@ function dblog_top($type) { */ function dblog_event($id) { $severity = watchdog_severity_levels(); - $output = ''; $result = db_query('SELECT w.*, u.name, u.uid FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid WHERE w.wid = :id', array(':id' => $id))->fetchObject(); if ($dblog = $result) { $rows = array( @@ -185,10 +193,16 @@ function dblog_event($id) { $dblog->link, ), ); - $attributes = array('class' => 'dblog-event'); - $output = theme('table', array(), $rows, $attributes); + $build['dblog_table'] = array( + '#theme' => 'table', + '#rows' => $rows, + '#attributes' => array('class' => 'dblog-event'), + ); + return $build; + } + else { + return ''; } - return $output; } /** |