Skip to content
Snippets Groups Projects
Commit b6d73970 authored by Angie Byron's avatar Angie Byron
Browse files

#898584 by Damien Tournoud, ksenzee, chx: Clean-up the upgrade path: system.

parent 061ee9d4
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
...@@ -2060,13 +2060,15 @@ function system_update_7016() { ...@@ -2060,13 +2060,15 @@ function system_update_7016() {
* Change the theme setting 'toggle_node_info' into a per content type variable. * Change the theme setting 'toggle_node_info' into a per content type variable.
*/ */
function system_update_7017() { function system_update_7017() {
$types = node_type_get_types(); // Get the global theme settings.
if (count($types)) { $settings = variable_get('theme_settings', array());
foreach ($types as $type) { // Get the settings of the default theme.
$node_info = theme_get_setting('toggle_node_info_' . $type->type); $settings = array_merge($settings, variable_get('theme_' . variable_get('theme_default', 'garland') . '_settings', array()));
if ($node_info !== NULL) {
variable_set('node_submitted_' . $type->type, $node_info); $types = _update_7000_node_get_types();
} foreach ($types as $type) {
if (isset($settings['toggle_node_info_' . $type->type])) {
variable_set('node_submitted_' . $type->type, $settings['toggle_node_info_' . $type->type]);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment