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

8.0.x
webchick 2014-04-03 14:25:02 -07:00
parent 3d856f3027
commit f5e0c1729c
3 changed files with 3 additions and 22 deletions

View File

@ -290,10 +290,8 @@ class ModulesListForm extends FormBase {
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.

View File

@ -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.
*

View File

@ -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',