Product SiteDocumentation Site

5.7. User Account Events

5.7.1. Account Preferences

EVENT_ACCOUNT_PREF_UPDATE_FORM (Execute)

This event allows plugins to do processing or display form elements on the Account Preferences page. It is triggered immediately after the last core preference element.
Any output here should follow the format found in account_prefs_inc.php. As of 1.3.x this is no longer table elements.
Parameters
  • <Integer>: User ID

EVENT_ACCOUNT_PREF_UPDATE (Execute)

This event allows plugins to do pre-processing of form elements from the Account Preferences page. It is triggered immediately before the user preferences are saved to the database.
Parameters
  • <Integer>: User ID

EVENT_USER_AVATAR (First)

This event gets the user's avatar as an instance of the Avatar class. The first plugin to respond with an avatar wins. Hence, in case of multiple avatar plugins, make sure to tweak the priorities. Avatars should return null if they don't have an avatar for the specified user id.
Parameters
  • <Avatar>: Avatar instance or null.