[Dolibarr-dev] question about hooks order
Hello, I have a question since a long time about hooks. If two modules or more implements the same hook, in which order are they executed ? I've made some tests but the results are not clear; in fact it seems that it depends on the order of the module activation ??? Best regards Christophe -- Christophe Battarel Responsable technique Altairis +33 (0)9 52 71 70 96 ___ Dolibarr-dev mailing list Dolibarr-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
Re: [Dolibarr-dev] question about hooks order
Laurent Destailleur (aka Eldy) a écrit le 05/10/2015 17:56 : There is no rule for hook order. So order is just "random". I will think to introduce something more predictable than random... You might look à SPIP paquet.xml that contains "necessite" and "utilise" wich as the abilititie to set hook order (one plugin that use another hooks after the other). Regards, -- RealET ___ Dolibarr-dev mailing list Dolibarr-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
Re: [Dolibarr-dev] question about hooks order
There is no rule for hook order. So order is just "random". I will think to introduce something more predictable than random... 2015-10-05 16:33 GMT+02:00 Christophe Battarel < christophe.batta...@altairis.fr>: > Hello, > > I have a question since a long time about hooks. > > If two modules or more implements the same hook, in which order are they > executed ? > > I've made some tests but the results are not clear; in fact it seems that > it depends on the order of the module activation ??? > > Best regards > Christophe > > -- > Christophe Battarel > Responsable technique Altairis > +33 (0)9 52 71 70 96 > > > ___ > Dolibarr-dev mailing list > Dolibarr-dev@nongnu.org > https://lists.nongnu.org/mailman/listinfo/dolibarr-dev > -- EMail: e...@destailleur.fr Web: http://www.destailleur.fr Google+: https://plus.google.com/+LaurentDestailleur/ Facebook: https://www.facebook.com/Destailleur.Laurent Twitter: http://www.twitter.com/eldy10 * Dolibarr (Project leader): http://www.dolibarr.org (make a donation for Dolibarr project via Paypal: cont...@destailleur.fr) * AWStats (Author) : http://awstats.sourceforge.net (make a donation for AWStats project via Paypal: cont...@destailleur.fr) * AWBot (Author) : http://awbot.sourceforge.net * CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net ___ Dolibarr-dev mailing list Dolibarr-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/dolibarr-dev