Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 401 and 402] [Versions 401 and 403]

Tour.

Copyright: 2016 Andrew Nicols <andrew@nicols.co.uk>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 115 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions


Functions that are not part of a class:

tool_usertours_inplace_editable($itemtype, $itemid, $newvalue)   X-Ref
Manage inplace editable saves.

param: string $itemtype The type of item.
param: int $itemid The ID of the item.
param: mixed $newvalue The new value
return: inplace_editable

tool_usertours_extend_navigation_user()   X-Ref
Extend the user navigation to bootstrap tours.


tool_usertours_before_footer()   X-Ref
Add JS to bootstrap tours. Only in Moodle 3.3+


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


tool_usertours_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options = [])   X-Ref
Serves any files associated with the user tour content.

param: stdClass $course Course object
param: stdClass $cm Course module object
param: context $context Context
param: string $filearea File area for data privacy
param: array $args Arguments
param: bool $forcedownload If we are forcing the download
param: array $options More options
return: bool Returns false if we don't find a file.