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

6.x
Gábor Hojtsy 2007-11-27 17:58:26 +00:00
parent bf17897c38
commit 0f10d5c5b1
1 changed files with 9 additions and 1 deletions

View File

@ -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;