theme_system_theme_select_form
modules/system/system.module, строка 510
- Версии
- 5 – 6
theme_system_theme_select_form($form)
Темизирует форму выбора темы.
Параметры
$form
Ассоциативный массив, содержащий структуру формы.
Код
<?php
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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии