Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402]

This page contains navigation hooks for learning plans.

Copyright: 2015 Damyon Wiese
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 298 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions


Functions that are not part of a class:

tool_lp_extend_navigation_user($navigation, $user, $usercontext, $course, $coursecontext)   X-Ref
This function extends the user navigation.

param: navigation_node $navigation The navigation node to extend
param: stdClass $user The user object
param: context_user $usercontext The user context
param: stdClass $course The course object
param: context_course $coursecontext The context of the course

tool_lp_myprofile_navigation(core_user\output\myprofile\tree $tree, $user, $iscurrentuser, $course)   X-Ref
Add nodes to myprofile page.

param: \core_user\output\myprofile\tree $tree Tree object
param: stdClass $user user object
param: bool $iscurrentuser
param: stdClass $course Course object
return: bool

tool_lp_extend_navigation_category_settings($navigation, $coursecategorycontext)   X-Ref
This function extends the category navigation to add learning plan links.

param: navigation_node $navigation The navigation node to extend
param: context $coursecategorycontext The context of the course category

tool_lp_coursemodule_standard_elements($formwrapper, $mform)   X-Ref
Inject the competencies elements into all moodle module settings forms.

param: moodleform $formwrapper The moodle quickforms wrapper object.
param: MoodleQuickForm $mform The actual form object (required to modify the form).

tool_lp_coursemodule_edit_post_actions($data, $course)   X-Ref
Hook the add/edit of the course module.

param: stdClass $data Data from the form submission.
param: stdClass $course The course.

tool_lp_get_fontawesome_icon_map()   X-Ref
Map icons for font-awesome themes.


tool_lp_render_competency_summary(\core_competency\competency $competency,\core_competency\competency_framework $framework,$includerelated,$includecourses,$skipenabled = false)   X-Ref
Render a short bit of information about a competency.

param: \core_competency\competency $competency The competency to show.
param: \core_competency\competency_framework $framework The competency framework.
param: boolean $includerelated If true, show related competencies.
param: boolean $includecourses If true, show courses using this competency.
param: boolean $skipenabled If true, show this competency even if competencies are disabled.
return: string The html summary for the competency.

tool_lp_competency_picker($mform, $courseid, $context, $elementname)   X-Ref
Inject a course competency picker into the form.

param: MoodleQuickForm $mform The actual form object (required to modify the form).
param: integer $courseid - SITEID or a course id
param: context $context - The page context
param: string $elementname - The name of the form element to create