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
71955d8c
Commit
71955d8c
authored
Feb 01, 2006
by
Dries Buytaert
Browse files
- Patch
#45785
by Markus: Not enabled themes shouldn't appear in admin/themes/settings.
parent
514bef01
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/system.module
View file @
71955d8c
...
...
@@ -131,9 +131,11 @@ function system_menu($may_cache) {
'type'
=>
MENU_DEFAULT_LOCAL_TASK
,
'weight'
=>
-
1
);
foreach
(
list_themes
()
as
$theme
)
{
$items
[]
=
array
(
'path'
=>
'admin/themes/settings/'
.
$theme
->
name
,
'title'
=>
$theme
->
name
,
'callback'
=>
'system_theme_settings'
,
'callback arguments'
=>
array
(
$theme
->
name
),
'access'
=>
$access
,
'type'
=>
MENU_LOCAL_TASK
);
if
(
$theme
->
status
)
{
$items
[]
=
array
(
'path'
=>
'admin/themes/settings/'
.
$theme
->
name
,
'title'
=>
$theme
->
name
,
'callback'
=>
'system_theme_settings'
,
'callback arguments'
=>
array
(
$theme
->
name
),
'access'
=>
$access
,
'type'
=>
MENU_LOCAL_TASK
);
}
}
// Modules:
...
...
modules/system/system.module
View file @
71955d8c
...
...
@@ -131,9 +131,11 @@ function system_menu($may_cache) {
'type'
=>
MENU_DEFAULT_LOCAL_TASK
,
'weight'
=>
-
1
);
foreach
(
list_themes
()
as
$theme
)
{
$items
[]
=
array
(
'path'
=>
'admin/themes/settings/'
.
$theme
->
name
,
'title'
=>
$theme
->
name
,
'callback'
=>
'system_theme_settings'
,
'callback arguments'
=>
array
(
$theme
->
name
),
'access'
=>
$access
,
'type'
=>
MENU_LOCAL_TASK
);
if
(
$theme
->
status
)
{
$items
[]
=
array
(
'path'
=>
'admin/themes/settings/'
.
$theme
->
name
,
'title'
=>
$theme
->
name
,
'callback'
=>
'system_theme_settings'
,
'callback arguments'
=>
array
(
$theme
->
name
),
'access'
=>
$access
,
'type'
=>
MENU_LOCAL_TASK
);
}
}
// Modules:
...
...
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