ForwardEx - A more extensive forward management system
2 Attachment(s)
Hello everyone.
For Simple Chat Processor (Redux), I needed a way to call each forward one by one (as the current forward manager's methods call either the first or the highest depending on your settings set in CreateForward). So here it is! Note: This is for private forwards Sample Plugin: PHP Code:
Thank you |
Re: ForwardEx - A more extensive forward management system
*Reserved*
11-25: Fixed a small bug. |
Re: ForwardEx - A more extensive forward management system
Quote:
The forward manager is supposed to call all private forwards registered. The value it returns depends on the execution type. ET_Ignore doesn't return anything. ET_Single returns the value from the last forward. ET_Event runs all forwards until it hits a forward that returns something other than Plugin_Continue (or runs all of them). It then returns that value. ET_Hook runs all forwards until it hits a forward that returns Plugin_Stop (or runs all of them). It then returns the highest value that was returned. By highest value, I mean out of these values: Code:
Plugin_Continue = 0, /**< Continue with the original action */ |
Re: ForwardEx - A more extensive forward management system
Quote:
|
| All times are GMT -4. The time now is 18:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.