| Versionen | |
|---|---|
| drupal6 – drupal7 | theme_system_theme_select_form($form) |
Theme the theme select form.
$form An associative array containing the structure of the form.
modules/
<?php
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;
}
?>
Kommentare
Kommentar hinzufügen