You are here

function opigno_lms_update_9005 in Opigno LMS 3.x

Import updated configs.

File

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

Code

function opigno_lms_update_9005() {
  _opigno_lms_apply_update('profile', 'opigno_lms', 'config/install', [
    'block.block.opigno_training_catalog_filter',
    'aristotle.settings',
    'block.block.mainnavigation',
    'block.block.opigno_admin',
    'block.block.primaryadminactions',
    'block.block.sitebranding',
    'block.block.tabs',
  ]);
  _opigno_lms_apply_delete([
    'block.block.opignoadmin',
  ]);

  // Copy user login page background image to public folder.
  $image = file_get_contents(drupal_get_path("theme", "aristotle") . "/assets/Trient-0014.jpg");
  file_save_data($image, 'public://Trient-0014.jpg', TRUE);
}