You are here

function theme_system_theme_select_form in Drupal 5

Same name and namespace in other branches
  1. 4 modules/system.module \theme_system_theme_select_form()
  2. 6 modules/system/system.admin.inc \theme_system_theme_select_form()
1 theme call to theme_system_theme_select_form()
system_theme_select_form in modules/system/system.module
Returns a fieldset containing the theme select form.

File

modules/system/system.module, line 510
Configuration system that lets administrators modify the workings of the site.

Code

function theme_system_theme_select_form($form) {
  foreach (element_children($form) as $key) {
    $row = array();
    if (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;
}