function theme_comment_admin_overview in Drupal 4
Same name and namespace in other branches
- 5 modules/comment/comment.module \theme_comment_admin_overview()
- 6 modules/comment/comment.admin.inc \theme_comment_admin_overview()
File
- modules/
comment.module, line 1021 - Enables users to comment on published content.
Code
function theme_comment_admin_overview($form) {
$output = form_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]);
$rows[] = $row;
}
}
else {
$rows[] = array(
array(
'data' => t('No comments available.'),
'colspan' => '6',
),
);
}
$output .= theme('table', $form['header']['#value'], $rows);
if ($form['pager']['#value']) {
$output .= form_render($form['pager']);
}
$output .= form_render($form);
return $output;
}