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

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

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3
    • 2.1
    • 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.

      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.

            jonof Jonathon Fowler
            jonof Jonathon Fowler
            Rajesh Taneja Rajesh Taneja
            Sam Hemelryk Sam Hemelryk
            Sam Hemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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