Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0f10d5c5
Commit
0f10d5c5
authored
Nov 27, 2007
by
Gábor Hojtsy
Browse files
#195743
by kkaefer: (usability) add labels to module names in the module admin form
parent
bf17897c
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.admin.inc
View file @
0f10d5c5
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment