Full ELMS Learning Network documentation
function theme_system_modules_uninstall
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).cis7 system.admin.inc | theme_system_modules_uninstall($variables) |
cle7 system.admin.inc | theme_system_modules_uninstall($variables) |
elmsmedia7 system.admin.inc | theme_system_modules_uninstall($variables) |
icor7 system.admin.inc | theme_system_modules_uninstall($variables) |
meedjum_blog7 system.admin.inc | theme_system_modules_uninstall($variables) |
mooc7 system.admin.inc | theme_system_modules_uninstall($variables) |
Returns HTML for a table of currently disabled modules.
Parameters
$variables: An associative array containing:
- form: A render element representing the form.
Related topics
2 string references to the theme hook from theme_system_modules_uninstall()
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- system_menu in modules/
system/ system.module - Implements hook_menu().
- system_theme in modules/
system/ system.module - Implements hook_theme().
File
- modules/
system/ system.admin.inc, line 2666 - Admin page callbacks for the system module.
Code
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) {
if (!empty($form['modules'][$module]['#required_by'])) {
$disabled_message = format_plural(count($form['modules'][$module]['#required_by']), 'To uninstall @module, the following module must be uninstalled first: @required_modules', 'To uninstall @module, the following modules must be uninstalled first: @required_modules', array('@module' => $form['modules'][$module]['#module_name'], '@required_modules' => implode(', ', $form['modules'][$module]['#required_by'])));
$disabled_message = '<div class="admin-requirements">' . $disabled_message . '</div>';
}
else {
$disabled_message = '';
}
$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']) . $disabled_message,
'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;
}