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

Provide a way to print a single activity like in print_section

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.2
    • 2.5
    • Course
    • MOODLE_24_STABLE
    • MOODLE_25_STABLE

    Description

      Before MDL-35339, one could pass a custom list of course modules to print in the section. Example: I could print just a single activity in the section. This is handy for custom course formats.

      Now, the $mods parameter is not used and all the code for printing an activity is trapped inside of print_section. The suggestion would be to move the rendering code of the single activity to a separate method (probably multiple methods, it's a lot of code, but one method to kick off default rendering) so it can be re-used outside of print_section.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bushido Mark Nielsen
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/May/13