Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-2592

moodledocs filter needs to be updated for Moodle 2.0

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Minor
    • None
    • 2.0
    • Filter: Moodledocs
    • None
    • Any
    • MOODLE_20_STABLE

    Description

      In Moodle 2.0 legacy filters only work within a course. For a filter to work outside of a course, in messaging for example, it needs to be updated. Discovered as part of MDL-25240.

      At a minimum the filter needs to include a class that extends moodle_text_filter similar to this:

      class filter_moodledocs extends moodle_text_filter {
      function filter($text, array $options = array())

      { return moodledocs_filter(null, $text); }

      }

      It also most likely requires a lang directory to contain its strings. Typically filters only require a single string.

      $string['filtername'] = 'Moodle docs';

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              andyjdavis Andrew Davis
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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