The first one added in your config.php will be the first one run.
-Evan
On Sun, 2010-11-07 at 09:37 +0800, 橡树 wrote:
> Hi, everyone
>
> Let's us suppose we created two plugins for the StatusNet. They both
> include event handler onEndPrimaryNav. I want to know which one would
> be executed first.
>
> PluginA
> PluginA.php
> /******************************************/
> class PluginA extends Plugin
> {
> function onEndPrimaryNav($action)
> {
> $action->menuItem(......);
> return true;
> }
> }
> /******************************************/
>
> PluginB
> PluginB.php
> /******************************************/
> class PluginB extends Plugin
> {
> function onEndPrimaryNav($action)
> {
> $action->menuItem(......);
> return true;
> }
> }
> /******************************************/
>
> Is my suppose possible? Is my suppose reasonable?
>
> I'm a newbie in StatusNet, so I hope you will not mind my strange
> questions.
>
> Regards,
> Blue
>
>
> _______________________________________________
> StatusNet-dev mailing list
> [email protected]
> http://lists.status.net/mailman/listinfo/statusnet-dev
--
Evan Prodromou, CEO, StatusNet Inc.
1124 rue Marie-Anne Est #32, Montreal, QC, Canada H2J 2B7
E: [email protected] T: 438-380-4801 x101 W: http://evan.status.net/
_______________________________________________
StatusNet-dev mailing list
[email protected]
http://lists.status.net/mailman/listinfo/statusnet-dev