function theme_moderate_content_notifications_list_form in Subscriptions 5.2
File
- contrib/
moderate_content_notifications/ moderate_content_notifications.module, line 141
Code
function theme_moderate_content_notifications_list_form($form) {
$output = drupal_render($form['options']);
$output .= drupal_render($form['note']);
if (isset($form['user']) && is_array($form['user'])) {
foreach (element_children($form['user']) as $key) {
$row = array();
$row[] = drupal_render($form['contents'][$key]);
$row[] = drupal_render($form['user'][$key]);
$row[] = drupal_render($form['node'][$key]);
$row[] = drupal_render($form['comment'][$key]);
$row[] = drupal_render($form['time'][$key]);
//$row[] = drupal_render($form['operations'][$key]);
$rows[] = $row;
}
}
else {
$rows[] = array(
array(
'data' => t('No content left to moderate.'),
'colspan' => '6',
),
);
}
$output .= theme('table', $form['header']['#value'], $rows);
if ($form['pager']['#value']) {
$output .= drupal_render($form['pager']);
}
$output .= drupal_render($form);
return $output;
}