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

Give local plugins the ability to add to the "Course administration" navigation

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.3
    • Navigation
    • MOODLE_21_STABLE
    • MOODLE_23_STABLE
    • Hide

      1. Unpack the attached test local plugin ZIP to the 'local' directory and run Notifications.
      2. Visit site home, find "MDL-30506 front page admin node" under Settings > Front page settings.
      3. Visit my home, find "MDL-30506 user admin node" under Settings > My profile settings.
      4. Visit a course page, find "MDL-30506 course admin node" under Settings > Course administration.

      Show
      1. Unpack the attached test local plugin ZIP to the 'local' directory and run Notifications. 2. Visit site home, find " MDL-30506 front page admin node" under Settings > Front page settings. 3. Visit my home, find " MDL-30506 user admin node" under Settings > My profile settings. 4. Visit a course page, find " MDL-30506 course admin node" under Settings > Course administration.

    Description

      This patch adds the ability for local plugins to add nodes to the 'Course administration' navigation in the Settings block in much the same way that MDL-22209 did for the global navigation tree.

      Local plugins can then implement a

      {pluginname}_extends_course_settings_navigation(navigation_node $nav, $coursecontext) function in their /local/{pluginname}

      /lib.php file. And if they want the current course id, they can look at $coursecontext->instanceid.

      Attachments

        Issue Links

          Activity

            People

              jonof Jonathon Fowler
              jonof Jonathon Fowler
              Rajesh Taneja Rajesh Taneja
              Sam Hemelryk Sam Hemelryk
              Sam Hemelryk Sam Hemelryk
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Jun/12