function theme_notifications_subscription_fields in Notifications 6
Same name and namespace in other branches
- 6.4 notifications.pages.inc \theme_notifications_subscription_fields()
- 6.2 notifications.pages.inc \theme_notifications_subscription_fields()
- 6.3 notifications.pages.inc \theme_notifications_subscription_fields()
Theme function for fields in form
File
- ./
notifications.pages.inc, line 441 - User pages for Notifications
Code
function theme_notifications_subscription_fields($elements) {
$header = array(
t('Field type'),
t('Value'),
);
$rows = array();
foreach (element_children($elements['name']) as $key) {
$rows[] = array(
drupal_render($elements['name'][$key]),
drupal_render($elements['value'][$key]),
);
}
$output = theme('table', $header, $rows);
$output .= drupal_render($elements);
return $output;
}