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
28f907c4
Commit
28f907c4
authored
Dec 18, 2006
by
Dries Buytaert
Browse files
- Patch
#103717
by profix88: unable to edit blocks for administration theme when it is not enabled.
parent
aa3daa32
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/block/block.module
View file @
28f907c4
...
...
@@ -88,17 +88,15 @@ function block_menu($may_cache) {
'type'
=>
MENU_LOCAL_TASK
);
$default
=
variable_get
(
'theme_default'
,
'garland'
);
foreach
(
list_themes
()
as
$key
=>
$theme
)
{
if
(
$theme
->
status
)
{
$items
[]
=
array
(
'path'
=>
'admin/build/block/list/'
.
$key
,
'title'
=>
t
(
'!key settings'
,
array
(
'!key'
=>
$key
)),
'callback'
=>
'drupal_get_form'
,
'callback arguments'
=>
array
(
'block_admin_display'
,
$key
),
'access'
=>
user_access
(
'administer blocks'
),
'type'
=>
$key
==
$default
?
MENU_DEFAULT_LOCAL_TASK
:
MENU_LOCAL_TASK
,
'weight'
=>
$key
==
$default
?
-
10
:
0
,
);
}
$items
[]
=
array
(
'path'
=>
'admin/build/block/list/'
.
$key
,
'title'
=>
t
(
'!key settings'
,
array
(
'!key'
=>
$key
)),
'callback'
=>
'drupal_get_form'
,
'callback arguments'
=>
array
(
'block_admin_display'
,
$key
),
'access'
=>
user_access
(
'administer blocks'
),
'type'
=>
$key
==
$default
?
MENU_DEFAULT_LOCAL_TASK
:
MENU_LOCAL_TASK
,
'weight'
=>
$key
==
$default
?
-
10
:
0
,
);
}
}
...
...
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