Bail out (print_error) with a custom message but without a link to the moodle docs

Bail out (print_error) with a custom message but without a link to the moodle docs

by Alex M -
Number of replies: 0
Hi,
we made a small plugin which limits access to certain courses upon certain criteria.

We already got the necessary error message, but it contains a link to moodle docs, even debug mode is off.

"More information about this error" -> links to https://docs.moodle.org/39/en/error/local_maxcourses/toomanypoints

How can we suppress this link or use an own target URL?

We already tried those calls, all with the same result:


print_error('toomanypoints', 'local_maxcourses', '', $points);
print_error('toomanypoints', 'local_maxcourses', false, $points);
print_error('toomanypoints', 'local_maxcourses', '/infos-about-point-system', $points);

Any help is appreciated.

Thanks,
Alex



Average of ratings: -