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

Call a function in the course format lib.php from course/view.php before $OUTPUT->header();

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Inactive
    • 2.1.1
    • None
    • Course, Themes
    • MOODLE_21_STABLE
    • Hide

      the readme in the attached format includes a workaround in the installation section.

      Show
      the readme in the attached format includes a workaround in the installation section.

    Description

      Course formats are currently loaded after $OUTPUT->header();. This limits the options in course format design. The course format cannot define a block region (the block manager has already finished by the time the course format is loaded). The course format cannot define block region strings.

      If course/view.php called a function in course/format/formatname/lib.php before $OUTPUT->header(); course formats will become much more versatile.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ca2si ca2si Etan
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona), Huong Nguyen, Bas Brands, Mathew May
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: