function theme_notifications_custom_fields in Notifications 6.4
Same name and namespace in other branches
- 6 notifications_custom/notifications_custom.module \theme_notifications_custom_fields()
Theme function for fields in form
1 theme call to theme_notifications_custom_fields()
- notifications_custom_fields_form in notifications_custom/
notifications_custom.admin.inc - Fields form: edit /add fields to custom subscription type
File
- notifications_custom/
notifications_custom.admin.inc, line 324 - Custom notifications module (admin features)
Code
function theme_notifications_custom_fields($elements) {
$header = array(
t('Delete'),
t('Field type'),
t('Value'),
);
$rows = array();
foreach (element_children($elements['name']) as $key) {
$rows[] = array(
drupal_render($elements['delete'][$key]),
drupal_render($elements['name'][$key]),
drupal_render($elements['edit'][$key]),
);
}
$output = theme('table', $header, $rows);
$output .= drupal_render($elements);
return $output;
}