Commit fd16d6eb authored by catch's avatar catch

Issue #2454057 by alexpott, mgifford: Node type settings property does not exist anymore

parent 03d49cf7
......@@ -1281,22 +1281,6 @@ function node_modules_installed($modules) {
* Implements hook_modules_uninstalled().
*/
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(),
// in which case the node access table needs to be rebuilt.
foreach ($modules as $module) {
......
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