Issue #2454057 by alexpott, mgifford: Node type settings property does not exist anymore
parent
03d49cf715
commit
fd16d6eb22
|
@ -1281,22 +1281,6 @@ function node_modules_installed($modules) {
|
||||||
* Implements hook_modules_uninstalled().
|
* Implements hook_modules_uninstalled().
|
||||||
*/
|
*/
|
||||||
function node_modules_uninstalled($modules) {
|
function node_modules_uninstalled($modules) {
|
||||||
// Remove module-specific settings from all node types.
|
|
||||||
$config_names = \Drupal::configFactory()->listAll('node.type.');
|
|
||||||
foreach ($config_names as $config_name) {
|
|
||||||
$config = \Drupal::config($config_name);
|
|
||||||
$changed = FALSE;
|
|
||||||
foreach ($modules as $module) {
|
|
||||||
if ($config->get('settings.' . $module)) {
|
|
||||||
$config->clear('settings.' . $module);
|
|
||||||
$changed = TRUE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($changed) {
|
|
||||||
$config->save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check whether any of the disabled modules implemented hook_node_grants(),
|
// Check whether any of the disabled modules implemented hook_node_grants(),
|
||||||
// in which case the node access table needs to be rebuilt.
|
// in which case the node access table needs to be rebuilt.
|
||||||
foreach ($modules as $module) {
|
foreach ($modules as $module) {
|
||||||
|
|
Loading…
Reference in New Issue