You are here

function theme_notifications_field_type in Notifications 7

Theme function for fields in form

File

./notifications.pages.inc, line 441
User pages for Notifications

Code

function theme_notifications_field_type($elements) {
  $elements = $variables['element'];
  $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', array(
    'header' => $header,
    'rows' => $rows,
  ));
  $output .= drupal_render($elements);
  return $output;
}