theme_system_modules_uninstall
- Versions
- 5 – 6
theme_system_modules_uninstall($form)- 7
theme_system_modules_uninstall($variables)
Themes a table of currently disabled modules.
Parameters
$variables An associative array containing:
- form: The form array representing the currently disabled modules.
Return value
An HTML string representing the table.
Related topics
Code
modules/system/system.admin.inc, line 2471
<?php
function theme_system_modules_uninstall($variables) {
$form = $variables['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><label for="' . $form['uninstall'][$module]['#id'] . '">' . drupal_render($form['modules'][$module]['name']) . '</label></strong>',
array('data' => drupal_render($form['modules'][$module]['description']), 'class' => array('description')),
);
}
$output = theme('table', array('header' => $header, 'rows' => $rows, 'empty' => t('No modules are available to uninstall.')));
$output .= drupal_render_children($form);
return $output;
}
?>Login or register to post comments 