From 0f10d5c5b1d675bfddcb91bd65e5e0bba501f23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Tue, 27 Nov 2007 17:58:26 +0000 Subject: [PATCH] #195743 by kkaefer: (usability) add labels to module names in the module admin form --- modules/system/system.admin.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index ce139cde6d7..5c93afa494f 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1952,7 +1952,15 @@ function theme_system_modules($form) { if (module_exists('throttle')) { $row[] = array('data' => drupal_render($form['throttle'][$key]), 'class' => 'checkbox'); } - $row[] = ''. drupal_render($form['name'][$key]) .''; + + // Add labels only when there is also a checkbox. + if (isset($form['status'][$key])) { + $row[] = ''; + } + else { + $row[] = ''. drupal_render($form['name'][$key]) .''; + } + $row[] = drupal_render($form['version'][$key]); $row[] = array('data' => $description, 'class' => 'description'); $rows[] = $row;