We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12089
    • 27 Posts
    I’ve created a simple plugin that run when a new user account is created. What I can’t understand is how to get the userID of the created user to us in my sql query. From reading the code I can understant that is is passed with the $modx->invokeEvent(OnWebSaveUser) call but I can’t seem to fugure out how to access the array.

    Thanks for you help
    Martin
      Hexagone3internet -  marketing - advertisinghexacontact.comEmail marketing service
      • 22303 MODX Staff
      • 10,725 Posts
      They are available as extracted variables, not as an array. So whatever key/values are passed in the array are now available as PHP variables within the scope of the plugin being invoked.
        • 12089
        • 27 Posts
        Quote from: OpenGeek at Oct 03, 2006, 01:55 PM

        They are available as extracted variables, not as an array. So whatever key/values are passed in the array are now available as PHP variables within the scope of the plugin being invoked.

        Thanks for the quick reply. I’ve been searching all days and it was as simple as that.

          Hexagone3internet -  marketing - advertisinghexacontact.comEmail marketing service