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

Question formats from contrib are not completely pluggable - must modify core lang files.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 2.0
    • 1.9.5
    • Questions
    • None
    • MOODLE_19_STABLE
    • MOODLE_20_STABLE

      Need to be able to make question formats completely pluggable. Currently, you must edit /lang/LANGUAGE/quiz.php and add the new format for it to display properly. Would like to be able to add contrib question formats without modifying moodle core files.

      Suggest that an additional location be added in places_to_search_for_lang_strings function (starting at line 5157 in /lib.moodlelib.php), probably something along the lines of 'qformat_' => array('question/format').

      Then you would just need to modify the get_import_export_formats function (starting at line 2029 in /lib/questionlib.php) to allow for this - currently it uses the directory name and looks for it in quiz.php.

        1. MDL-19550.patch
          2 kB
        2. MDL-19550.patch
          2 kB
        3. MDL-19550-head.patch
          0.9 kB

            timhunt Tim Hunt
            mcampbell Matt Campbell (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.