Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-16438

centralise information about plugins to avoid duplication

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0
    • General
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      From a conversation in jabber and following on from MDL-16392

      It would be good to have an array somewhere containing all information about plugins, where their db directories are etc. At the moment get_db_directories seems to contain most of this information but there are other places in moodle that duplicate this (the example was events_load_def).

      If we could maintain one array containing this information and then a few helper functions around it we could potentially:

      a) remove a lot of duplication
      b) make it easier to add new plugin 'types' later without having to add db location information in muliple places

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              mjollnir Penny Leach
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10