theme_system_modules_uninstall
modules/system/system.module, строка 1690
- Версии
- 5 – 6
theme_system_modules_uninstall($form)
Темизирует таблицу отключенных на данный момент модулей.
Параметры
$form
Массив, представляющий отключенные на данный момент модули.
Возвращаемое значение
HTML представление таблицы.
Код
<?php
function theme_system_modules_uninstall($form) {
// No theming for the confirm form.
if (isset($form['confirm'])) {
return drupal_render($form);
}
// Table headers.
$header = array(t('Uninstall'),
t('Name'),
t('Description'),
);
// Display table.
$rows = array();
foreach (element_children($form['modules']) as $module) {
$rows[] = array(
array('data' => drupal_render($form['uninstall'][$module]), 'align' => 'center'),
'<strong>'. drupal_render($form['modules'][$module]['name']) .'</strong>',
array('data' => drupal_render($form['modules'][$module]['description']), 'class' => 'description'),
);
}
// Only display table if there are modules that can be uninstalled.
if (!count($rows)) {
$rows[] = array(array('data' => t('No modules are available to uninstall.'), 'colspan' => '3', 'align' => 'center', 'class' => 'message'));
}
$output = theme('table', $header, $rows);
$output .= drupal_render($form);
return $output;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии