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

Make module generator use add_moduleinfo

    XMLWordPrintable

Details

    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • wip-MDL-42400-master
    • Hide

      Run all automated tests

      Use the script (modify it as you want) https://gist.github.com/marinaglancy/7130493 to create a test course and generate modules in it. Make sure it's reasonable

      Using web-interface and web-services create gradeable and not gradeable modules (checking for regressions).

      Create course using tool_generator

      Show
      Run all automated tests Use the script (modify it as you want) https://gist.github.com/marinaglancy/7130493 to create a test course and generate modules in it. Make sure it's reasonable Using web-interface and web-services create gradeable and not gradeable modules (checking for regressions). Create course using tool_generator

    Description

      Function add_moduleinfo() was created after the module generators.

      Now module generators need to be changed to use it in order to:

      • Properly use API. At the moment there is a wrong sequence in creating module and adding it to the section which already resulted in course cache not being reset when it is supposed to so that assign generator is now hacked to explicitly clear course cache.
      • Allow generate modules with conditional availability and completion info
      • This will allow to add new module generators much easier

      Also in this issue added generators for modules: glossary, lesson, survey, url, wiki, workshop, created an issue (linked) for remaining modules

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              Petr Skoda Petr Skoda
              Damyon Wiese Damyon Wiese
              Jason Fowler Jason Fowler
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13