Jump to main content Jump to doc navigation

Event: OnUserProfileSave

Fires after a modUserProfile has been saved successfully. That is the extended profile row (email, full name, phone, blocked flags, extended JSON, and so on), not the modUser login record. Use OnUserSave when you need the user object itself.

Invoked from modUserProfile::save() only when parent::save() returns true.

  • Service: 1 - Parser Service Events
  • Group: User Profiles

Event Parameters

Name Description
userprofile A reference to the saved modUserProfile object.
mode modSystemEvent::MODE_NEW (new) or modSystemEvent::MODE_UPD (upd), depending on whether the profile was new.
cacheFlag The $cacheFlag value passed into save().

See Also

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • CrewMark
  • Fabian Christen
  • Sepia River Studios
  • Dannevang Digital
  • Alex
  • A. Moreno
  • Chris Fickling
  • Stéphane Jäggi
  • Murray Wood
  • Anton Tarasov
  • deJaya
  • JT Skaggs
  • Lefthandmedia
  • eydolan
  • Following Sea
  • Guido Gallenkamp
  • YJ
  • Raffy
  • Snow Creative
  • Nick Clark
  • Guest
  • Helen
  • krisznet
  • Yanni
  • Richard

Budget

$204 per month—let's make that $500!

Learn more