Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

This page lists public api for tool_moodlenet plugin.

Copyright: 2020 Peter Dias
License: http://www.gnu.org/copyleft/gpl.html GNU
File Size: 104 lines (4 kb)
Included or required: 1 time
Referenced: 1 time
Includes or requires: 0 files

Defines 2 functions


Functions that are not part of a class:

generate_mnet_endpoint(string $profileurl, int $course, int $section = 0)   X-Ref
Generate the endpoint url to the user's moodlenet site.

param: string $profileurl The user's moodlenet profile page
param: int $course The moodle course the mnet resource will be added to
param: int $section The section of the course will be added to. Defaults to the 0th element.
return: string the resulting endpoint

tool_moodlenet_custom_chooser_footer(int $courseid, int $sectionid)   X-Ref
Hooking function to build up the initial Activity Chooser footer information for MoodleNet

param: int $courseid The course the user is currently in and wants to add resources to
param: int $sectionid The section the user is currently in and wants to add resources to
return: activity_chooser_footer