Issue #2151123 by joelpittet | Cottser: Remove theme_system_modules_incompatible().
parent
3d856f3027
commit
f5e0c1729c
|
@ -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.
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue