diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-09-28 19:13:03 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-09-28 19:13:03 +0000 |
commit | 1298d2b9c90ba496a9e63b76cd9875113d25257e (patch) | |
tree | 719c5e7b9d6f1e054cbf9663cfc597ac7b7d3c1d /modules/statistics/statistics.module | |
parent | 60f945bcc758b6965e80e64e57219ba4cde02482 (diff) | |
download | brdo-1298d2b9c90ba496a9e63b76cd9875113d25257e.tar.gz brdo-1298d2b9c90ba496a9e63b76cd9875113d25257e.tar.bz2 |
Modified version of #10230: Put placement of filter format selector in a module's hands, and move it below the relevant textarea.
Diffstat (limited to 'modules/statistics/statistics.module')
-rw-r--r-- | modules/statistics/statistics.module | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 5ada47b1b..e31b9a5ba 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -626,8 +626,16 @@ function statistics_summary($dbfield, $dbrows) { $content = node_load(array('nid' => $nid['nid'])); $links = link_node($content, 1); + // Filter and prepare node teaser + if (node_hook($content, 'view')) { + node_invoke($content, 'view', TRUE, FALSE); + } + else { + $content = node_prepare($content, TRUE); + } + $output .= '<tr><td><strong>'. l($nid['title'], 'node/'. $nid['nid'], array('title' => t('View this posting.'))) .'</strong></td><td style="text-align: right;"><small>'. t('Submitted by %a on %b', array('%a' => format_name($content), '%b' => format_date($content->created, 'large'))) .'</small></td></tr>'; - $output .= '<tr><td colspan="2"><div style="margin-left: 20px;">'. check_output($content->teaser, $content->format) .'</div></td></tr>'; + $output .= '<tr><td colspan="2"><div style="margin-left: 20px;">'. $content->teaser .'</div></td></tr>'; $output .= '<tr><td style="text-align: right;" colspan="2">[ '. theme('links', $links) .' ]<br /><br /></td></tr>'; } |