Commit 0f10d5c5 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#195743 by kkaefer: (usability) add labels to module names in the module admin form

parent bf17897c
......@@ -1952,7 +1952,15 @@ function theme_system_modules($form) {
if (module_exists('throttle')) {
$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[] = array('data' => $description, 'class' => 'description');
$rows[] = $row;
......
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