From f7b39fcd4d9e437eb39a77295bb37232e8982eee Mon Sep 17 00:00:00 2001 From: Sean Madsen <sean@seanmadsen.com> Date: Tue, 10 Oct 2017 15:11:47 +0100 Subject: [PATCH] Add example of XML for extension dependencies --- docs/extensions/info-xml.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/extensions/info-xml.md b/docs/extensions/info-xml.md index 0796c0c6..e9e07fa1 100644 --- a/docs/extensions/info-xml.md +++ b/docs/extensions/info-xml.md @@ -263,6 +263,16 @@ Attributes acceptable for `<psr4>` * Containing element: [`<extension>`](#extension) * Description: Used to to specify other extensions on which this extension is dependent. * Contains: elements +* Example: + + ```xml + <extension key="org.civicrm.foo" type="module"> + <requires> + <ext>org.civicrm.bar</ext> + </requires> + </extension> + ``` + * Notes: * For example if `org.civicrm.foo` requires `org.civicrm.bar`, then CiviCRM core will not enable `org.civicrm.foo` unless it can enable `org.civicrm.bar` _first_. * Also, if `org.civicrm.bar` depends on other extensions, the process will continue recursively, always by enabling the dependencies first. -- GitLab