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

- Patch #12794 by assimonds: make sure the node module is optional.

parent b1392fb1
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
......@@ -241,8 +241,10 @@ function theme_get_settings($key = NULL) {
'toggle_comment_user_picture' => 0,
);
foreach (node_list() as $type) {
$defaults['toggle_node_info_' . $type] = 1;
if (module_exist('node')) {
foreach (node_list() as $type) {
$defaults['toggle_node_info_' . $type] = 1;
}
}
$settings = array_merge($defaults, variable_get('theme_settings', array()));
......
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