Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Subplugins

From MoodleDocs
Revision as of 18:13, 13 August 2021 by David Mudrak (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

"A sub-plugin has the same structure as a regular plugin. It will have a version.php, a lang directory, and can have a db directory with an install.xml and all the other hooks you'd expect to see used in any other type of plugin, such as an activity, block, or admin report."

This part is unclear. None of the actual subplugins of the Moodle distribution have this structure. What hooks precisely can be used in a subplugin ? What file names, what function names, what classes are needed to get it all working ?

Thanks,

F P 22:19, 24 September 2011 (WST)

Unclear: "supporting multiple versions"

"If you have a plugin supporting multiple versions, then you should create the db/subplugins.json file, as well as a db/subplugins.php variant which contains the following: "

Versions of what? Moodle versions?

Thanks

Yes, it refers to Moodle versions --David Mudrak (talk) 18:13, 13 August 2021 (UTC)