You are here

function opigno_messaging_update_8005 in Opigno messaging 8

Update new private message link on private-messages page.

File

./opigno_messaging.install, line 77
Install, update and uninstall functions for the Opigno Messaging module.

Code

function opigno_messaging_update_8005() {
  $config_path = drupal_get_path('module', 'opigno_messaging') . '/config/optional';
  $storage = new FileStorage($config_path);
  $config_storage = \Drupal::service('config.storage');
  $data = $storage
    ->read('views.view.private_message');
  $config_storage
    ->write('views.view.private_message', $data);
}