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
44373cf0
Commit
44373cf0
authored
Nov 14, 2007
by
Dries
Browse files
- Patch
#191282
by quicksketch: inconsistent database region for disabled blocks.
parent
e05c6195
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/block/block.install
View file @
44373cf0
...
...
@@ -52,7 +52,7 @@ function block_schema() {
'type'
=>
'varchar'
,
'length'
=>
64
,
'not null'
=>
TRUE
,
'default'
=>
'
left
'
,
'default'
=>
''
,
'description'
=>
t
(
'Theme region within which the block is set.'
),
),
'custom'
=>
array
(
...
...
modules/system/system.install
View file @
44373cf0
...
...
@@ -4524,6 +4524,15 @@ function system_update_6036() {
return
$ret
;
}
/**
* Create consistent empty region for disabled blocks.
*/
function
system_update_6037
()
{
$ret
=
array
();
$ret
[]
=
update_sql
(
"UPDATE
{
blocks
}
SET region = '' WHERE status = 0"
);
return
$ret
;
}
/**
* @} End of "defgroup updates-5.x-to-6.x"
* The next series of updates should start at 7000.
...
...
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