function theme_system_theme_select_form

6.x system.admin.inc theme_system_theme_select_form($form)

Theme the theme select form.

Parameters

$form: An associative array containing the structure of the form.

Related topics

1 theme call to theme_system_theme_select_form()
system_theme_select_form in drupal-6.x/modules/system/system.module
Returns a fieldset containing the theme select form.

File

drupal-6.x/modules/system/system.admin.inc, line 2165
Admin page callbacks for the system module.

Code

function theme_system_theme_select_form($form) {
  foreach (element_children($form) as $key) {
    $row = array();
    if (isset($form[$key]['description']) && is_array($form[$key]['description'])) {
      $row[] = drupal_render($form[$key]['screenshot']);
      $row[] = drupal_render($form[$key]['description']);
      $row[] = drupal_render($form['theme'][$key]);
    }
    $rows[] = $row;
  }

  $header = array(t('Screenshot'), t('Name'), t('Selected'));
  $output = theme('table', $header, $rows);
  return $output;
}