Skip to content

Commit

Permalink
PGI-153 | Transform update hook tp post update hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosailma authored and szatom committed Feb 7, 2023
1 parent 9d6237f commit 7e674e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

/**
* @file
* Install, update and uninstall functions for the c2distro_core module.
* C2distro_core module updates once other modules have made their own updates.
*/

/**
* Set Password never expires to true for existing AD users.
*/
function c2distro_core_update_9001() {
function c2distro_core_post_update_set_password_never_expires() {
$userStorage = \Drupal::entityTypeManager()->getStorage('user');
$users = $userStorage->loadMultiple();
foreach ($users as $user) {
Expand Down

0 comments on commit 7e674e2

Please sign in to comment.