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
ffcf5ab7
Commit
ffcf5ab7
authored
Jan 27, 2005
by
Steven Wittens
Browse files
- Code style
parent
1f916621
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/block.module
View file @
ffcf5ab7
...
...
@@ -192,7 +192,7 @@ function block_admin_display() {
foreach
(
$blocks
as
$block
)
{
if
(
$block
[
'module'
]
==
'block'
)
{
$operation
=
l
(
t
(
'delete'
),
'admin/block/delete/'
.
$block
[
'delta'
]);
$operation
=
l
(
t
(
'delete'
),
'admin/block/delete/'
.
$block
[
'delta'
]);
}
else
{
$operation
=
''
;
...
...
@@ -306,12 +306,12 @@ function block_box_delete($bid = 0) {
switch
(
$op
)
{
case
t
(
'Delete'
)
:
db_query
(
'DELETE FROM {boxes} WHERE bid = %d'
,
$bid
);
drupal_set_message
(
t
(
'The block %name has been deleted.'
,
array
(
'%name'
=>
'<em>'
.
$box
[
'info'
]
.
'</em>'
)));
drupal_set_message
(
t
(
'The block %name has been deleted.'
,
array
(
'%name'
=>
'<em>'
.
$box
[
'info'
]
.
'</em>'
)));
cache_clear_all
();
drupal_goto
(
'admin/block'
);
default
:
$form
=
'<p>'
.
t
(
'Are you sure you want to delete the block %name?'
,
array
(
'%name'
=>
'<em>'
.
$box
[
'info'
]
.
'</em>'
))
.
"</p>
\n
"
;
$form
=
'<p>'
.
t
(
'Are you sure you want to delete the block %name?'
,
array
(
'%name'
=>
'<em>'
.
$box
[
'info'
]
.
'</em>'
))
.
"</p>
\n
"
;
$form
.
=
form_submit
(
t
(
'Delete'
));
$output
=
form
(
$form
);
}
...
...
modules/block/block.module
View file @
ffcf5ab7
...
...
@@ -192,7 +192,7 @@ function block_admin_display() {
foreach
(
$blocks
as
$block
)
{
if
(
$block
[
'module'
]
==
'block'
)
{
$operation
=
l
(
t
(
'delete'
),
'admin/block/delete/'
.
$block
[
'delta'
]);
$operation
=
l
(
t
(
'delete'
),
'admin/block/delete/'
.
$block
[
'delta'
]);
}
else
{
$operation
=
''
;
...
...
@@ -306,12 +306,12 @@ function block_box_delete($bid = 0) {
switch
(
$op
)
{
case
t
(
'Delete'
)
:
db_query
(
'DELETE FROM {boxes} WHERE bid = %d'
,
$bid
);
drupal_set_message
(
t
(
'The block %name has been deleted.'
,
array
(
'%name'
=>
'<em>'
.
$box
[
'info'
]
.
'</em>'
)));
drupal_set_message
(
t
(
'The block %name has been deleted.'
,
array
(
'%name'
=>
'<em>'
.
$box
[
'info'
]
.
'</em>'
)));
cache_clear_all
();
drupal_goto
(
'admin/block'
);
default
:
$form
=
'<p>'
.
t
(
'Are you sure you want to delete the block %name?'
,
array
(
'%name'
=>
'<em>'
.
$box
[
'info'
]
.
'</em>'
))
.
"</p>
\n
"
;
$form
=
'<p>'
.
t
(
'Are you sure you want to delete the block %name?'
,
array
(
'%name'
=>
'<em>'
.
$box
[
'info'
]
.
'</em>'
))
.
"</p>
\n
"
;
$form
.
=
form_submit
(
t
(
'Delete'
));
$output
=
form
(
$form
);
}
...
...
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