You are here

function theme_image_settings_sizes_form in Image 6

Same name and namespace in other branches
  1. 5.2 image.module \theme_image_settings_sizes_form()
  2. 5 image.module \theme_image_settings_sizes_form()
  3. 7 image.admin.inc \theme_image_settings_sizes_form()
1 theme call to theme_image_settings_sizes_form()
image_admin_settings in ./image.admin.inc
Menu callback; Form builder function for image settings.

File

./image.admin.inc, line 187

Code

function theme_image_settings_sizes_form($form) {
  $header = array(
    t('Label'),
    t('Operation'),
    t('Width'),
    t('Height'),
    t('Link'),
  );
  foreach (element_children($form) as $key) {
    $row = array();
    $row[] = drupal_render($form[$key]['label']);
    $row[] = drupal_render($form[$key]['operation']);
    $row[] = drupal_render($form[$key]['width']);
    $row[] = drupal_render($form[$key]['height']);
    $row[] = drupal_render($form[$key]['link']);
    $rows[] = $row;
  }
  $output = theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}