function theme_notifications_form_table in Notifications 5
Same name and namespace in other branches
- 6.4 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
3 theme calls to theme_notifications_form_table()
- notifications_content_form in notifications_content/
notifications_content.module - Generic subscriptions content form
- notifications_tags_user_form in notifications_tags/
notifications_tags.module - Returns the taxonomy subscription form
- notifications_user_form in ./
notifications.admin.inc - Generic subscriptions content form
File
- ./
notifications.admin.inc, line 275
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;
}