Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
6ab93466
Commit
6ab93466
authored
May 05, 2008
by
Dries
Browse files
- Patch
#192962
by gpk et al: ghop
#24
, module administration page improvements.
parent
bca16fde
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/system/system.admin.inc
View file @
6ab93466
...
...
@@ -639,6 +639,8 @@ function system_modules($form_state = array()) {
}
}
// Used when checking if module implements a help page.
$help_arg
=
module_exists
(
'help'
)
?
drupal_help_arg
()
:
FALSE
;
// Array for disabling checkboxes in callback system_module_disable.
$disabled
=
array
();
// Traverse the files retrieved and build the form.
...
...
@@ -646,6 +648,15 @@ function system_modules($form_state = array()) {
$form
[
'name'
][
$filename
]
=
array
(
'#value'
=>
$file
->
info
[
'name'
]);
$form
[
'version'
][
$filename
]
=
array
(
'#value'
=>
$file
->
info
[
'version'
]);
$form
[
'description'
][
$filename
]
=
array
(
'#value'
=>
t
(
$file
->
info
[
'description'
]));
// Generate link for module's help page, if there is one.
if
(
$help_arg
&&
module_hook
(
$filename
,
'help'
))
{
if
(
module_invoke
(
$filename
,
'help'
,
"admin/help#
$filename
"
,
$help_arg
))
{
// Module has a help page.
$form
[
'help'
][
$filename
]
=
array
(
'#value'
=>
theme
(
'more_help_link'
,
url
(
"admin/help/
$filename
"
)));
}
}
$options
[
$filename
]
=
''
;
// Ensure this module is compatible with this version of core and php.
if
(
_system_is_incompatible
(
$incompatible_core
,
$files
,
$file
)
||
_system_is_incompatible
(
$incompatible_php
,
$files
,
$file
))
{
...
...
@@ -2078,7 +2089,11 @@ function theme_system_modules($form) {
$rows
=
array
();
foreach
(
$modules
as
$key
=>
$module
)
{
$row
=
array
();
$description
=
drupal_render
(
$form
[
'description'
][
$key
]);
$description
=
''
;
if
(
isset
(
$form
[
'help'
][
$key
]))
{
$description
=
'<div class="module-help">'
.
drupal_render
(
$form
[
'help'
][
$key
])
.
'</div>'
;
}
$description
.
=
drupal_render
(
$form
[
'description'
][
$key
]);
if
(
isset
(
$form
[
'status'
][
'#incompatible_modules_core'
][
$key
]))
{
unset
(
$form
[
'status'
][
$key
]);
$status
=
theme
(
'image'
,
'misc/watchdog-error.png'
,
t
(
'incompatible'
),
t
(
'Incompatible with this version of Drupal core'
));
...
...
modules/system/system.css
View file @
6ab93466
...
...
@@ -163,6 +163,10 @@ tr.merge-up, tr.merge-up td, tr.merge-up th {
.more-link
{
text-align
:
right
;
/* LTR */
}
.module-help
{
margin-left
:
1em
;
/* LTR */
float
:
right
;
/* LTR */
}
.nowrap
{
white-space
:
nowrap
;
}
...
...
themes/garland/style.css
View file @
6ab93466
...
...
@@ -250,6 +250,10 @@ span.submitted, .description {
color
:
#898989
;
}
.description
.more-help-link
{
font-size
:
0.92em
;
}
.description
{
line-height
:
150%
;
margin-bottom
:
0.75em
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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