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

Allow use of uninstall_plugin in upgrade code

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.8
    • None
    • Installation
    • MOODLE_38_STABLE

    Description

      From Eloy's comment,

      Z) Proceeding with custom removal code like this is really error prone. What if the block has files, or tags, or logs, or anything else. We should be able to use plugin_manager / uninstall_plugin() in upgrade code. Sort of verify that everything works and whitelist it for allowing its use. It's a pity that we have a good API to remove plugins and cannot use it un upgrade.php. So +1 to consider that option at some point (another issue).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              peterdias Peter Dias
              Matteo Scaramuccia, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: