Prereqs

3 posts / 0 new
Last post
Prereqs

Hey Richard!

I understand that in Prerequisites box, each line represents a "and" condition; in the same line "or" can be applied.

If a course, for example MTH300, the prerequisite for this course is that a student has to take any five courses from the given 6 courses(say, MTH 201, 202, 203, 204, 205, 206), how to render it in the prerequisite box?

Thanks!

Sure thing. I'd call this a somewhat complicated prereq. For this, you can take advantage of the prereq module's "hook_prereqs_get_prereq_warnings" function.

This lets you program a custom situation like what you are describing. See the included README.txt file which comes with the module.

Basically, you'd need to program it to check if the student has any 5 of those courses you mentioned.

Thanks!

Log in to post comments