#195743 by kkaefer: (usability) add labels to module names in the module admin form
parent
bf17897c38
commit
0f10d5c5b1
|
@ -1952,7 +1952,15 @@ function theme_system_modules($form) {
|
||||||
if (module_exists('throttle')) {
|
if (module_exists('throttle')) {
|
||||||
$row[] = array('data' => drupal_render($form['throttle'][$key]), 'class' => 'checkbox');
|
$row[] = array('data' => drupal_render($form['throttle'][$key]), 'class' => 'checkbox');
|
||||||
}
|
}
|
||||||
$row[] = '<strong>'. drupal_render($form['name'][$key]) .'</strong>';
|
|
||||||
|
// Add labels only when there is also a checkbox.
|
||||||
|
if (isset($form['status'][$key])) {
|
||||||
|
$row[] = '<strong><label for="'. $form['status'][$key]['#id'] .'">'. drupal_render($form['name'][$key]) .'</label></strong>';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$row[] = '<strong>'. drupal_render($form['name'][$key]) .'</strong>';
|
||||||
|
}
|
||||||
|
|
||||||
$row[] = drupal_render($form['version'][$key]);
|
$row[] = drupal_render($form['version'][$key]);
|
||||||
$row[] = array('data' => $description, 'class' => 'description');
|
$row[] = array('data' => $description, 'class' => 'description');
|
||||||
$rows[] = $row;
|
$rows[] = $row;
|
||||||
|
|
Loading…
Reference in New Issue