You are here

function theme_notifications_subscription_fields in Notifications 6.2

Same name and namespace in other branches
  1. 6.4 notifications.pages.inc \theme_notifications_subscription_fields()
  2. 6 notifications.pages.inc \theme_notifications_subscription_fields()
  3. 6.3 notifications.pages.inc \theme_notifications_subscription_fields()

Theme function for fields in form

File

./notifications.pages.inc, line 532
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;
}