PluginsDependance: Difference between revisions
From LimeSurvey Manual
DenisChenu (talk | contribs) |
DenisChenu (talk | contribs) |
||
Line 10: | Line 10: | ||
== Order (use ?) == | == Order (use ?) == | ||
=== Usage === | |||
* [[BeforeTokenEmail]] plugin can send email before another BeforeTokenEmail update body (for example) or send a email | * [[BeforeTokenEmail]] plugin can send email before another BeforeTokenEmail update body (for example) or send a email | ||
Line 17: | Line 19: | ||
Need 2 plugin, but | Need 2 plugin, but | ||
* [https://framagit.org/SondagePro-LimeSurvey-plugin/noMailToExample noMailToExample] can be disable if another plugin send the email (and here : beforeTokenEmail need a stop to disallow sending an email 2 times (plugin issue ?) | * [https://framagit.org/SondagePro-LimeSurvey-plugin/noMailToExample noMailToExample] can be disable if another plugin send the email (and here : beforeTokenEmail need a stop to disallow sending an email 2 times (plugin issue ?) | ||
=== Remark === | |||
* A plugin can force to be first and broke all other BeforeTokenEmail plugin : but it's the plugin issue, not LS issue. | |||
* A plugin can already use App()->end() in any other event and choose to be first or not | |||
== Mantis == | == Mantis == |
Latest revision as of 23:10, 15 February 2017
Dependance
Usage
- Activate a plugin if another plugin is activated
- Disallow deactivation of a plugin if another plugin depend
Example
Order (use ?)
Usage
- BeforeTokenEmail plugin can send email before another BeforeTokenEmail update body (for example) or send a email
- afterSurveySubmited can have same issue
Example
Need 2 plugin, but
- noMailToExample can be disable if another plugin send the email (and here : beforeTokenEmail need a stop to disallow sending an email 2 times (plugin issue ?)
Remark
- A plugin can force to be first and broke all other BeforeTokenEmail plugin : but it's the plugin issue, not LS issue.
- A plugin can already use App()->end() in any other event and choose to be first or not
Mantis
- https://bugs.limesurvey.org/view.php?id=12127 (this topic)