From 1298d2b9c90ba496a9e63b76cd9875113d25257e Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 28 Sep 2004 19:13:03 +0000 Subject: Modified version of #10230: Put placement of filter format selector in a module's hands, and move it below the relevant textarea. --- modules/statistics/statistics.module | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'modules/statistics/statistics.module') 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 .= ''. l($nid['title'], 'node/'. $nid['nid'], array('title' => t('View this posting.'))) .''. t('Submitted by %a on %b', array('%a' => format_name($content), '%b' => format_date($content->created, 'large'))) .''; - $output .= '
'. check_output($content->teaser, $content->format) .'
'; + $output .= '
'. $content->teaser .'
'; $output .= '[ '. theme('links', $links) .' ]

'; } -- cgit v1.2.3