We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32241
    • 1,495 Posts
    How to use invoke event API? Can we use it for our own?

    Thanks
      Wendy Novianto
      [font=Verdana]PT DJAMOER Technology Media
      [font=Verdana]Xituz Media
    • Quote from: wendy at Jan 19, 2006, 09:43 PM

      How to use invoke event API? Can we use it for our own?
      Wendy, this is not an API function, but a core internal function for triggering core events, to which Plugins can be attached for custom processing when the event is invoked.

      You could hack this to create new custom events, but you’d have to add the event to the database by hand, and then call invokeEvent() where you intended to trigger plugins from within your custom code.

      Future plans for this event model are being researched and discussed, but I at least intend to find a way to allow user-defined events at some point, either in Tattoo, or both MODx and Tattoo.
        • 32241
        • 1,495 Posts
        That’s so cool.

        Allrighty then, I’ll just have to wait for the future.

        Regards,
          Wendy Novianto
          [font=Verdana]PT DJAMOER Technology Media
          [font=Verdana]Xituz Media
          • 19726
          • 239 Posts
          Quote from: OpenGeek at Jan 19, 2006, 09:53 PM

          Wendy, this is not an API function, but a core internal function for triggering core events, to which Plugins can be attached for custom processing when the event is invoked.
          That funciton is listed in the API reference on the site (http://modxcms.com/invokeevent.html). It might be a good idea to remove it if it is not a public API.