Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
a8920046
Commit
a8920046
authored
Jun 05, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#361277
by Razorraser: node_get_type() isn't anymore.
parent
5e190456
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/node/node.install
modules/node/node.install
+2
-2
No files found.
modules/node/node.install
View file @
a8920046
...
...
@@ -416,10 +416,10 @@ function node_update_7004() {
// Map old preview setting to new values order.
$original_preview
?
$original_preview
=
2
:
$original_preview
=
1
;
$type_list
=
node_get_types
(
'types'
);
$type_list
=
node_
type_
get_types
();
// Apply original settings to all types.
foreach
(
$type_list
as
$type
)
{
foreach
(
$type_list
as
$type
=>
$object
)
{
variable_set
(
'teaser_length_'
.
$type
,
$original_length
);
variable_set
(
'node_preview_'
.
$type
,
$original_preview
);
}
...
...
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