function theme_notifications_form_table in Notifications 6.4
Same name and namespace in other branches
- 5 notifications.admin.inc \theme_notifications_form_table()
- 6 notifications.admin.inc \theme_notifications_form_table()
- 6.2 notifications.admin.inc \theme_notifications_form_table()
- 6.3 notifications.admin.inc \theme_notifications_form_table()
Theme subscriptions list
File
- ./
notifications.admin.inc, line 468
Code
function theme_notifications_form_table($element) {
$output = '';
if ($fields = element_children($element)) {
$header = $element['#header'];
$rows = array();
// The first element determines the number of columns
foreach (element_children($element[$fields[key($fields)]]) as $index) {
$row = array();
foreach ($fields as $key) {
$row[] = isset($element[$key][$index]) ? drupal_render($element[$key][$index]) : '';
}
$rows[] = $row;
}
$output .= theme('table', $header, $rows);
}
$output .= drupal_render($element);
return $output;
}