Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
300
Merge Requests
300
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
d5db06d5
Commit
d5db06d5
authored
Feb 22, 2005
by
Steven Wittens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17216
: Restore missing "delete" link for blocks.
parent
1e15bed3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
modules/block.module
modules/block.module
+4
-3
modules/block/block.module
modules/block/block.module
+4
-3
No files found.
modules/block.module
View file @
d5db06d5
...
...
@@ -192,10 +192,10 @@ function block_admin_display() {
foreach
(
$blocks
as
$block
)
{
if
(
$block
[
'module'
]
==
'block'
)
{
$
operation
=
l
(
t
(
'delete'
),
'admin/block/delete/'
.
$block
[
'delta'
]);
$
delete
=
l
(
t
(
'delete'
),
'admin/block/delete/'
.
$block
[
'delta'
]);
}
else
{
$
operation
=
''
;
$
delete
=
''
;
}
$row
=
array
(
$block
[
'info'
],
array
(
'data'
=>
form_checkbox
(
NULL
,
$block
[
'module'
]
.
']['
.
$block
[
'delta'
]
.
'][status'
,
1
,
$block
[
'status'
]),
'align'
=>
'center'
),
form_weight
(
NULL
,
$block
[
'module'
]
.
']['
.
$block
[
'delta'
]
.
'][weight'
,
$block
[
'weight'
]),
form_radios
(
NULL
,
$block
[
'module'
]
.
']['
.
$block
[
'delta'
]
.
'][region'
,
$block
[
'region'
],
array
(
t
(
'left'
),
t
(
'right'
))));
...
...
@@ -204,7 +204,8 @@ function block_admin_display() {
if
(
module_exist
(
'throttle'
))
{
$row
[]
=
array
(
'data'
=>
form_checkbox
(
NULL
,
$block
[
'module'
]
.
']['
.
$block
[
'delta'
]
.
'][throttle'
,
1
,
$block
[
'throttle'
]),
'align'
=>
'center'
);
}
$row
[]
=
array
(
'data'
=>
l
(
t
(
'configure'
),
'admin/block/configure/'
.
$block
[
'module'
]
.
'/'
.
$block
[
'delta'
]),
$operation
);
$row
[]
=
l
(
t
(
'configure'
),
'admin/block/configure/'
.
$block
[
'module'
]
.
'/'
.
$block
[
'delta'
]);
$row
[]
=
$delete
;
$rows
[]
=
$row
;
}
...
...
modules/block/block.module
View file @
d5db06d5
...
...
@@ -192,10 +192,10 @@ function block_admin_display() {
foreach
(
$blocks
as
$block
)
{
if
(
$block
[
'module'
]
==
'block'
)
{
$
operation
=
l
(
t
(
'delete'
),
'admin/block/delete/'
.
$block
[
'delta'
]);
$
delete
=
l
(
t
(
'delete'
),
'admin/block/delete/'
.
$block
[
'delta'
]);
}
else
{
$
operation
=
''
;
$
delete
=
''
;
}
$row
=
array
(
$block
[
'info'
],
array
(
'data'
=>
form_checkbox
(
NULL
,
$block
[
'module'
]
.
']['
.
$block
[
'delta'
]
.
'][status'
,
1
,
$block
[
'status'
]),
'align'
=>
'center'
),
form_weight
(
NULL
,
$block
[
'module'
]
.
']['
.
$block
[
'delta'
]
.
'][weight'
,
$block
[
'weight'
]),
form_radios
(
NULL
,
$block
[
'module'
]
.
']['
.
$block
[
'delta'
]
.
'][region'
,
$block
[
'region'
],
array
(
t
(
'left'
),
t
(
'right'
))));
...
...
@@ -204,7 +204,8 @@ function block_admin_display() {
if
(
module_exist
(
'throttle'
))
{
$row
[]
=
array
(
'data'
=>
form_checkbox
(
NULL
,
$block
[
'module'
]
.
']['
.
$block
[
'delta'
]
.
'][throttle'
,
1
,
$block
[
'throttle'
]),
'align'
=>
'center'
);
}
$row
[]
=
array
(
'data'
=>
l
(
t
(
'configure'
),
'admin/block/configure/'
.
$block
[
'module'
]
.
'/'
.
$block
[
'delta'
]),
$operation
);
$row
[]
=
l
(
t
(
'configure'
),
'admin/block/configure/'
.
$block
[
'module'
]
.
'/'
.
$block
[
'delta'
]);
$row
[]
=
$delete
;
$rows
[]
=
$row
;
}
...
...
Write
Preview
Markdown
is supported
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