Skip to content

Commit

Permalink
Fixed hook update
Browse files Browse the repository at this point in the history
  • Loading branch information
yeniatencio committed Jul 9, 2024
1 parent e47d4b9 commit dd67d7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tide_user_expire/tide_user_expire.install
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ function tide_user_expire_update_10001() {
module_load_include('inc', 'tide_core', 'includes/helpers');
$config_id = 'user_expire.settings';
$config = \Drupal::configFactory()->getEditable($config_id);
$config_location = [\Drupal::service('extension.list.module')->getPath('tide_core') . '/config/optional'];
$config_read = _tide_read_config($config_id, $config_location);
$config_location = [\Drupal::service('extension.list.module')->getPath('tide_user_expire') . '/config/optional'];
$config_read = _tide_read_config($config_id, $config_location, FALSE);
$config->set('frequency', $config_read['frequency']);
$config->set('offset', $config_read['offset']);
$config->set('user_expire_roles', $config_read['user_expire_roles']);
Expand Down

0 comments on commit dd67d7d

Please sign in to comment.