function opigno_group_manager_update_8006 in Opigno group manager 8
Uninstall ggroup.
File
- ./
opigno_group_manager.install, line 84 - Opigno group manager install/update functionality.
Code
function opigno_group_manager_update_8006() {
$modules = [
'ggroup',
];
\Drupal::database()
->delete('key_value')
->condition('collection', 'system.schema')
->condition('name', $modules, 'IN')
->execute();
$module_data = \Drupal::config('core.extension')
->get('module');
unset($module_data['ggroup']);
\Drupal::configFactory()
->getEditable('core.extension')
->set('module', $module_data)
->save();
\Drupal::service('cache.config')
->invalidateAll();
drupal_flush_all_caches();
}