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

more options in print_context function

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      I attach a patch to print_context_name that adds two params to the function $withprefix = true and $short = false.

      withprefix controls whether the prefix eg. 'Course :' "Course Category :' etc. is included
      and $short controls whether to return the full Course Name or the short name.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lazyfish Yu Zhang
              Reporter:
              jamiesensei Jamie Pratt
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: