Plugins can indicate if they depend upon certain conditions in order for them to work correctly. Two attributes are used to specify this:
utilise. In the first case, the dependency is a strong one: a plugin that requires a resource (a certain version of SPIP or another particular plugin) can not be activated if that resource is not present and active. An error will be generated if we try to activate the plugin without that dependency being fulfilled. In the second case, the dependency is weak, and the plugin can be activated and perhaps even work even if that dependency is not fulfilled.
- <necessite id="prefixe" version="[version_min;version_max]" />
idis the name of the plugin’s prefix, or "SPIP" for a direct dependency on SPIP itself,
versionused optionally can indicate the mininum and/or maximum version of a plugin. Square brackets are used to indicate that the version as specified is included, parentheses to indicate that the version specified is not included.
"Utilise" is therefore used to declare optional dependencies, with exactly the same syntax as for
necessite also therefore make it possible to override the files for the plugin that they refer to (as they have priority in the file path).