summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-08-10 15:42:33 +0000
committerDries Buytaert <dries@buytaert.net>2006-08-10 15:42:33 +0000
commitce85b7c7f806126f6c4487cde54a990cfa8d1eba (patch)
tree30d6bd007dc5b3f754dbbc575ffc4bd3c55a0c62 /modules/comment/comment.module
parentba9f7f17946e35bac44c4dbdbef3bcd8d9a8e8f9 (diff)
downloadbrdo-ce85b7c7f806126f6c4487cde54a990cfa8d1eba.tar.gz
brdo-ce85b7c7f806126f6c4487cde54a990cfa8d1eba.tar.bz2
- 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 ... :)
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module18
1 files changed, 9 insertions, 9 deletions
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 .= '<div class="container-inline">';
- $output .= form_render($form);
+ $output .= drupal_render($form);
$output .= '</div>';
$output .= '<div class="description">'. t('Select your preferred way to display the comments and click "Save settings" to activate your changes.') .'</div>';
return theme('box', t('Comment viewing options'), $output);