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
7addef29
Commit
7addef29
authored
Feb 11, 2009
by
Angie Byron
Browse files
#372400
by swentel and BrightLoudNoise: Fix 'delete' link on block administration screen.
parent
295feb1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/block/block.admin.inc
View file @
7addef29
...
...
@@ -80,7 +80,7 @@ function block_admin_display_form(&$form_state, $blocks, $theme = NULL) {
);
if
(
$block
[
'module'
]
==
'block'
)
{
$form
[
$key
][
'delete'
]
=
array
(
'#
value
'
=>
l
(
t
(
'delete'
),
'#
markup
'
=>
l
(
t
(
'delete'
),
'admin/build/block/delete/'
.
$block
[
'delta'
]),
);
}
...
...
modules/block/block.test
View file @
7addef29
...
...
@@ -54,6 +54,7 @@ class BlockTestCase extends DrupalWebTestCase {
}
// Delete the created box & verify that it's been deleted and no longer appearing on the page.
$this
->
clickLink
(
t
(
'delete'
));
$this
->
drupalPost
(
'admin/build/block/delete/'
.
$bid
,
array
(),
t
(
'Delete'
));
$this
->
assertRaw
(
t
(
'The block %title has been removed.'
,
array
(
'%title'
=>
$box
[
'info'
])),
t
(
'Box successfully deleted.'
));
$this
->
assertNoText
(
t
(
$box
[
'title'
]),
t
(
'Box no longer appears on page.'
));
...
...
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