Skip to content

Commit

Permalink
Update classes/helper.php
Browse files Browse the repository at this point in the history
Co-authored-by: PhMemmel <[email protected]>
  • Loading branch information
sh-csg and PhMemmel authored Jan 15, 2025
1 parent 9f2d931 commit 5a412e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
class helper {
/**
* Returns whether the map should be shown on the course page.
* If course format is format_learningmap the setting in the database is ignored.
*
* @param cm_info $cm
* @return bool
* If course format format_learningmap is being used the module setting will be ignored.
*
* @param cm_info $cm the coursemodule info object
* @return bool the "showoncoursemap" setting of the coursemodule, or false if current course format is format_learningmap
*/
public static function show_map_on_course_page($cm): bool {
global $DB;
Expand Down

0 comments on commit 5a412e8

Please sign in to comment.