function theme_notifications_custom_fields in Notifications 6
Same name and namespace in other branches
- 6.4 notifications_custom/notifications_custom.admin.inc \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
 
File
- notifications_custom/
notifications_custom.module, line 413  - Custom notifications module
 
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['value'][$key]),
    );
  }
  $output = theme('table', $header, $rows);
  $output .= drupal_render($elements);
  return $output;
}