From ce85b7c7f806126f6c4487cde54a990cfa8d1eba Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 10 Aug 2006 15:42:33 +0000 Subject: - Patch #74326 by Eaton, Royboy, chx, et al: building $node->body with arrays like FAPI for viewing. Once again, we're paving the path for CCK in core ... :) --- modules/comment/comment.module | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index d66101c6d..a6c14879d 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1085,15 +1085,15 @@ function comment_admin_overview_submit($form_id, $edit) { } function theme_comment_admin_overview($form) { - $output = form_render($form['options']); + $output = drupal_render($form['options']); if (isset($form['subject']) && is_array($form['subject'])) { foreach (element_children($form['subject']) as $key) { $row = array(); - $row[] = form_render($form['comments'][$key]); - $row[] = form_render($form['subject'][$key]); - $row[] = form_render($form['username'][$key]); - $row[] = form_render($form['timestamp'][$key]); - $row[] = form_render($form['operations'][$key]); + $row[] = drupal_render($form['comments'][$key]); + $row[] = drupal_render($form['subject'][$key]); + $row[] = drupal_render($form['username'][$key]); + $row[] = drupal_render($form['timestamp'][$key]); + $row[] = drupal_render($form['operations'][$key]); $rows[] = $row; } } @@ -1103,10 +1103,10 @@ function theme_comment_admin_overview($form) { $output .= theme('table', $form['header']['#value'], $rows); if ($form['pager']['#value']) { - $output .= form_render($form['pager']); + $output .= drupal_render($form['pager']); } - $output .= form_render($form); + $output .= drupal_render($form); return $output; } @@ -1580,7 +1580,7 @@ function comment_controls($mode = COMMENT_MODE_THREADED_EXPANDED, $order = COMME function theme_comment_controls($form) { $output .= '
'; - $output .= form_render($form); + $output .= drupal_render($form); $output .= '
'; $output .= '
'. t('Select your preferred way to display the comments and click "Save settings" to activate your changes.') .'
'; return theme('box', t('Comment viewing options'), $output); -- cgit v1.2.3