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

Make module generator use add_moduleinfo

    XMLWordPrintable

    Details

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      wip-MDL-42400-master

      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

              Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Peer reviewer:
              Petr Skoda
              Integrator:
              Damyon Wiese
              Tester:
              Jason Fowler
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/13