Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-13404 Improve tagging system
  3. MDL-14577

Create hook system to let other module show their tagged content

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0
    • None
    • Tags
    • None
    • MOODLE_20_STABLE

    Description

      There should be a hook that other module could implement to display tagged content on /tag/index.php, without having to modify the file.

      We could add a [modulename]_tag_section(string $current_tag) hook. (Would that be a good name? Suggestions welcome...)

      The function would pass the current tag as an argument, and expect a fully formed html string, to be displayed.

      This could be a good occasion to get the user- and blog-specific code out of /tag/index.php and into the related lib file..

      Attachments

        Activity

          People

            Unassigned Unassigned
            scyrma Mathieu Petit-Clair
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: