Jump to main content Jump to doc navigation

Event: OnUserProfileBeforeSave

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

Invoked from modUserProfile::save() in MODX Revolution 3.x.

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

Event Parameters

Name Description
userprofile A reference to the modUserProfile object about to be saved.
mode modSystemEvent::MODE_NEW (new) or modSystemEvent::MODE_UPD (upd), depending on whether the profile is 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