Skip to content
Snippets Groups Projects
Commit a8920046 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 5e190456
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -416,10 +416,10 @@ function node_update_7004() { ...@@ -416,10 +416,10 @@ function node_update_7004() {
// Map old preview setting to new values order. // Map old preview setting to new values order.
$original_preview ? $original_preview = 2 : $original_preview = 1; $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. // 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('teaser_length_' . $type, $original_length);
variable_set('node_preview_' . $type, $original_preview); variable_set('node_preview_' . $type, $original_preview);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment