function opigno_moxtra_uninstall in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 opigno_moxtra.install \opigno_moxtra_uninstall()
Implements hook_uninstall().
File
- ./
opigno_moxtra.install, line 71 - Install, update and uninstall functions for the Opigno Moxtra module.
Code
function opigno_moxtra_uninstall() {
// Remove module configs.
$configs = [
'core.entity_form_display.opigno_calendar_event.meeting_calendar_event.default',
'core.entity_form_display.opigno_calendar_event.meeting_calendar_event.embedded_widget',
'core.entity_view_display.opigno_calendar_event.meeting_calendar_event.default',
'core.entity_view_display.opigno_calendar_event.meeting_calendar_event.embedded_display',
'field.field.group.learning_path.field_workspace',
'field.field.opigno_calendar_event.meeting_calendar_event.field_calendar_event_members',
'field.field.opigno_calendar_event.meeting_calendar_event.field_meeting',
'field.storage.group.field_workspace',
'field.storage.opigno_calendar_event.field_meeting',
'group.content_type.group_content_type_78b202c274a0f',
'opigno_calendar_event.type.meeting_calendar_event',
'opigno_moxtra.settings',
'user.role.collaborative_features',
];
foreach ($configs as $config) {
try {
\Drupal::configFactory()
->getEditable($config)
->delete();
} catch (Exception $e) {
\Drupal::logger('opigno_moxtra')
->error($e
->getMessage());
}
}
}