You are here

function opigno_learning_path_update_8035 in Opigno Learning path 8

Add alternative text to training catalog.

File

./opigno_learning_path.install, line 952
Install, update and uninstall functions for the module.

Code

function opigno_learning_path_update_8035() {

  // Add new cron configuretions.
  $config_path = drupal_get_path('module', 'opigno_learning_path') . '/config/install';
  $storage = new FileStorage($config_path);
  $config_storage = \Drupal::service('config.storage');
  $data = $storage
    ->read('group.role.learning_path-member');
  $config_storage
    ->write('group.role.learning_path-member', $data);
}