inactive_autologout_user_logout() duplicates user_logout()

Created on 7 March 2023, over 1 year ago
Updated 18 July 2023, 12 months ago

Problem/Motivation

This module implements a hook_user_logout() (inactive_autologout_user_logout) that messages and destroys the session the same as the function that calls the hook user_logout(), see https://api.drupal.org/api/drupal/core%21modules%21user%21user.module/fu....

Proposed resolution

Options 1

  • Remove inactive_autologout_user_logout
  • Call user_logout() instead of inactive_autologout_user_logout in \Drupal\inactive_autologout\Controller\AutologoutController::autologout()

Options 2

If the custom inactive_autologout_user_logout was needed in order to not invoke all of the hook_user_logout(), then

  • Rename inactive_autologout_user_logout to something that is not a hook - example: inactive_autologout_user_autologout
  • Call the new function name instead of inactive_autologout_user_logout in \Drupal\inactive_autologout\Controller\AutologoutController::autologout()
🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States recrit

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024