You are here

function opigno_lms_update_9001 in Opigno LMS 3.x

Uninstall redundant modules.

File

./opigno_lms.install, line 124
Install, update and uninstall functions for the "opigno_lms" installation profile.

Code

function opigno_lms_update_9001() {
  _opigno_lms_update_module_disable([
    'opigno_tour',
    'multiselect',
    'openapi',
    'openapi_ui',
    'openapi_ui_swagger',
    'views_role_based_global_text',
  ]);
  _opigno_lms_apply_delete([
    'tour.tour.views-ui',
    'tour.tour.training_edit',
    'tour.tour.training',
    'tour.tour.search-api-server-form',
    'tour.tour.search-api-server',
    'tour.tour.search-api-index-processors',
    'tour.tour.search-api-index-form',
    'tour.tour.search-api-index-fields',
    'tour.tour.search-api-index',
    'tour.tour.locale',
    'tour.tour.language-edit',
    'tour.tour.language-add',
    'tour.tour.language',
    'tour.tour.front',
    'tour.tour.catalogue',
    'tour.tour.achievements',
    'core.entity_view_mode.tour.token',
  ]);
  $schema = Database::getConnection()
    ->schema();
  $schema
    ->dropTable('opigno_tour_user_routes');
}