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

8.1.x
Nathaniel Catchpole 2016-02-22 12:34:50 +09:00
parent 03d49cf715
commit fd16d6eb22
1 changed files with 0 additions and 16 deletions

View File

@ -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) {