function theme_spam_reported_comments_overview in Spam 5
Form theme code for spam_reported_comments_overview code
File
- ./
spam.module, line 2384
Code
function theme_spam_reported_comments_overview($form) {
$output = drupal_render($form['options']);
if (isset($form['subject']) && is_array($form['subject'])) {
foreach (element_children($form['subject']) as $key) {
$row = array();
$row[] = drupal_render($form['comments'][$key]);
$row[] = drupal_render($form['times_reported'][$key]);
$row[] = drupal_render($form['last_reported'][$key]);
$row[] = drupal_render($form['reported_by'][$key]);
$row[] = drupal_render($form['subject'][$key]);
$row[] = drupal_render($form['author'][$key]);
$row[] = drupal_render($form['hostname'][$key]);
$row[] = drupal_render($form['status'][$key]);
$row[] = drupal_render($form['operations'][$key]);
$rows[] = $row;
}
}
else {
$rows[] = array(
array(
'data' => t('No comments reported.'),
'colspan' => '99',
),
);
}
$output .= theme('table', $form['header']['#value'], $rows);
if ($form['pager']['#value']) {
$output .= drupal_render($form['pager']);
}
$output .= drupal_render($form);
return $output;
}