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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.3
    • Component/s: Navigation
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      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

        1. local-plugin-extend-course-settings-nav.patch
          1 kB
          Jonathon Fowler

          Issue Links

            Activity

              People

              Assignee:
              jonof Jonathon Fowler
              Reporter:
              jonof Jonathon Fowler
              Peer reviewer:
              Rajesh Taneja
              Integrator:
              Sam Hemelryk
              Tester:
              Sam Hemelryk
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Jun/12