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) { if (!$compatible) {
$status = implode(' ', $reasons); $status = implode(' ', $reasons);
$row['enable']['#disabled'] = TRUE; $row['enable']['#disabled'] = TRUE;
$row['description'] = array( $row['description']['#markup'] = $status;
'#theme' => 'system_modules_incompatible', $row['#attributes']['class'][] = 'incompatible';
'#message' => $status,
);
} }
// If this module requires other modules, add them to the array. // 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); $col4 = drupal_render($details);
$row[] = array('class' => array('description', 'expand'), 'data' => $col4); $row[] = array('class' => array('description', 'expand'), 'data' => $col4);
$rows[] = $row; $rows[] = $module['#attributes'] + array('data' => $row);
} }
$table = array( $table = array(
@ -344,19 +344,6 @@ function theme_system_modules_details($variables) {
return drupal_render($table); 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. * Returns HTML for a table of currently disabled modules.
* *

View File

@ -181,10 +181,6 @@ function system_theme() {
'render element' => 'form', 'render element' => 'form',
'file' => 'system.admin.inc', 'file' => 'system.admin.inc',
), ),
'system_modules_incompatible' => array(
'variables' => array('message' => NULL),
'file' => 'system.admin.inc',
),
'system_modules_uninstall' => array( 'system_modules_uninstall' => array(
'render element' => 'form', 'render element' => 'form',
'file' => 'system.admin.inc', 'file' => 'system.admin.inc',