Commit f5e0c172 authored by webchick's avatar webchick

Issue #2151123 by joelpittet | Cottser: Remove theme_system_modules_incompatible().

parent 3d856f30
......@@ -290,10 +290,8 @@ protected function buildRow(array $modules, Extension $module, $distribution) {
if (!$compatible) {
$status = implode(' ', $reasons);
$row['enable']['#disabled'] = TRUE;
$row['description'] = array(
'#theme' => 'system_modules_incompatible',
'#message' => $status,
);
$row['description']['#markup'] = $status;
$row['#attributes']['class'][] = 'incompatible';
}
// If this module requires other modules, add them to the array.
......
......@@ -333,7 +333,7 @@ function theme_system_modules_details($variables) {
$col4 = drupal_render($details);
$row[] = array('class' => array('description', 'expand'), 'data' => $col4);
$rows[] = $row;
$rows[] = $module['#attributes'] + array('data' => $row);
}
$table = array(
......@@ -344,19 +344,6 @@ function theme_system_modules_details($variables) {
return drupal_render($table);
}
/**
* Returns HTML for a message about incompatible modules.
*
* @param $variables
* An associative array containing:
* - message: The form array representing the currently disabled modules.
*
* @ingroup themeable
*/
function theme_system_modules_incompatible($variables) {
return '<div class="incompatible">' . $variables['message'] . '</div>';
}
/**
* Returns HTML for a table of currently disabled modules.
*
......
......@@ -181,10 +181,6 @@ function system_theme() {
'render element' => 'form',
'file' => 'system.admin.inc',
),
'system_modules_incompatible' => array(
'variables' => array('message' => NULL),
'file' => 'system.admin.inc',
),
'system_modules_uninstall' => array(
'render element' => 'form',
'file' => 'system.admin.inc',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment