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

Talk:Plugin types

From MoodleDocs
Revision as of 20:37, 14 July 2021 by David Mudrak (talk | contribs) (Text replacement - "<code php>" to "<syntaxhighlight lang="php">")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Updating the Plugin types page

  • The order of plugin types to match the order in which core_plugin_manager::get_plugin_types() returns them
  • Legacy plugin types to be at the end of the list

To generate the full list, use the following script and manually merge it into the existing page.


// Put the file to the root directory of your Moodle installation and execute
// it via command line.

define('CLI_SCRIPT', true);

$pluginman = core_plugin_manager::instance();

cli_writeln('{| class="wikitable"
! Plugin type
! Component name ([[Frankenstyle]])
! Moodle path
! Description
! Moodle versions');

foreach ($pluginman->get_plugin_types() as $type => $dir) {
    cli_writeln('| [['.$pluginman->plugintype_name_plural($type).']]');
    cli_writeln('| '.$type);
    cli_writeln('| '.substr($dir, strlen($CFG->dirroot)));
    cli_writeln('| description');
    cli_writeln('| versions');


--David Mudrak (talk) 18:58, 20 May 2016 (AWST)