Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-2161

Require frankenstyle component specified in version.php

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Low
    • Resolution: Duplicate
    • moodle.org/plugins
    • None

    Description

      Since Moodle 2.0.2 (MDL-26035), plugins may declare the frankenstyle component in their version.php as in

      $plugin->component = 'block_foobar';
      

      This declaration is used to detect if the plugin is installed in the correct location. As we are extending the possibility to install plugins from ZIPs downloaded from moodle.org/plugins, it would be good to have this declaration in all registered plugins (ideally). So the plan is:

      1. Add support for checking the component declaration during the ZIP validation in local_plugins
      2. Start raising warning if the component is not declared there.
      3. Announce and promote the new line in version.php and recommend all maintainers to add it.
      4. At some point, escalate the validation rule so that missing $plugin->component is considered as an unacceptable error.

      Attachments

        Issue Links

          Activity

            People

              mudrd8mz David Mudrák (@mudrd8mz)
              mudrd8mz David Mudrák (@mudrd8mz)
              David Mudrák (@mudrd8mz)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: