Commit a8920046 authored by Dries's avatar Dries

- Patch #361277 by Razorraser: node_get_type() isn't anymore.

parent 5e190456
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment