Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
30.38 KB
MD5: 1fb4594a73012909582e5faad2213b8d
SHA-1: 7aac441c136d2078d05857a83edbb329346246b3
SHA-256: eb55fd1f2d51fd913e8e7754812f61442f4a0a1c2469b3477771631a6a97de65
Download zip
49.73 KB
MD5: 46f0b4a0deb4ddda109681c163442e3a
SHA-1: 88635c2b0bc713b76e7521e1b893e708f6f5430a
SHA-256: a99117c519cb7ae90dbe3104635030dcc1167a510fab5303477043adeb06963e
Release notes
Attempts are deleted with their account
An attempt is personal learning data of the account that made it. Until now it stayed behind when the account was deleted.
- Deleting a user deletes every attempt the user owns (
hook_user_predelete). - Cancelling a user with "delete the account and make its content belong to the anonymous user" deletes the attempts as well instead of reassigning them. Blocking an account keeps them, since the account stays.
- The attempts are deleted through the entity storage, so modules that attach data to an attempt (reports, result files, tracking rows) can remove it in their own
hook_ENTITY_TYPE_predelete()orhook_ENTITY_TYPE_delete()forattempt_mgmt_attempt. - New service method
AttemptFactory::deleteAttemptsForUser()for other modules.
Update
A post update (attempt_mgmt_post_update_delete_orphaned_attempts) removes attempts whose account no longer exists. Anonymous attempts (uid 0) are kept. Run drush updatedb after updating.