Standard plugin features

Download the plugin from GitHib. Now, let's take a look at the structure of the duallang plugin together. There are three files worth mentioning:

  • version.php: This contains not only the version information of the plugin itself but also the minimum version of Moodle required to run it. It also, optionally, contains a list of dependencies. The following is a copy of the relevant code from our new plugin:
      $plugin->component = 'local_duallang';       $plugin->release = 'alpha1';       $plugin->version = 2016112300;       $plugin->requires = 2015030900;       $plugin->maturity = MATURITY_ALPHA;       $plugin->dependencies = array(); 
  • lang/en/local_duallang.php: This contains the plugin's language strings. There is only one language string ...

Get Moodle 3.x Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.