1

Topic: [extension] extensions communicating with one another

My question may sound stupid or unclear because I clearly lack a "developer vocabulary" and basic knowledge, but anyway...

Is it possible for an extension (A) to check if another extension (B) is already installed and to check the value of a particular setting of extension (B) so as to create some kind of dependency system?
What do you think would be the best solution?

Re: [extension] extensions communicating with one another

Short answer: Yes.

3

Re: [extension] extensions communicating with one another

My first idea was the following :

1* I will use my previous example with extension (A) needing extension (B) either to simply work or to get extra-features
2* Extension (B) declares a variable signaling its status (installed and active) in a (or several) hook(s). This hook should be one present in every files where needed (sic!) and early on in the code.
3* Extension (A) will check for the "(B)'s status variable" before executing any code requiring extension (B).
4* As a matter of ergonomy a verification of the status of (B) should occur in the extension (A) installation/settings page.

Am I close to something decent?

Re: [extension] extensions communicating with one another

Sounds good to me.