You are here

function theme_exif_admin_settings_form in Exif 5

File

./exif.module, line 349

Code

function theme_exif_admin_settings_form($form) {
  $header = array(
    t('Tag'),
    t('Weight'),
    t('Type'),
  );
  $rows = array();
  foreach (element_children($form['tags']) as $key) {
    $row = array();
    $row[] = drupal_render($form['tags'][$key]['status']);
    $row[] = drupal_render($form['tags'][$key]['weight']);
    $row[] = drupal_render($form['tags'][$key]['type']);
    $rows[] = $row;
  }
  $output .= theme('table', $header, $rows, array(
    'class' => 'admin-settings-exif',
  ));
  $output .= drupal_render($form);
  return $output;
}