[ewiki] Re: new .xpi plugins, reworked plugin hooks [init] and _TEXT check
- From: Mario Salzer <mario@xxxxxxxxxxxxx>
- To: ewiki@xxxxxxxxxxxxx
- Date: Thu, 25 Mar 2004 02:02:41 +0100
> Could you explain this a little deeper? It looks like, in addition to
> the code's new position, the difference is that page_init is no longer
> unset instead running once for each call to ewiki_page. Is that the sum
> of it or am I missing something?
The ["page_init"] reference is still there, but will of course disappear
as soon as all remaining plugins were changed to further use ["init"]
soley.
You can now hook a function to $ewiki_plugins["init"][], and it is
GUARANTEED that it will be run once, regardless if your plugin was
included before or after the core 'ewiki.php' script was included().
I believe that's far better now, and especially the old ["page_init"]
was at the wrong place and useless for multiple purposes.
mario
- References:
- [ewiki] new .xpi plugins, reworked plugin hooks [init] and _TEXT check
- From: Mario Salzer
- [ewiki] Re: new .xpi plugins, reworked plugin hooks [init] and_TEXT check
- From: Andy Fundinger
Other related posts:
- » [ewiki] new .xpi plugins, reworked plugin hooks [init] and _TEXT check
- » [ewiki] Re: new .xpi plugins, reworked plugin hooks [init] and_TEXT check
- » [ewiki] Re: new .xpi plugins, reworked plugin hooks [init] and _TEXT check
- [ewiki] new .xpi plugins, reworked plugin hooks [init] and _TEXT check
- From: Mario Salzer
- [ewiki] Re: new .xpi plugins, reworked plugin hooks [init] and_TEXT check
- From: Andy Fundinger