README.txt
Search API
- 6.x README.txt
- 6.x modules/tinymce/README.txt
- 6.x modules/student_files/README.txt
- 6.x modules/batch/README.txt
- 6.x modules/lassie/README.txt
- 6.x modules/prereqs/README.txt
- 6.x themes/how_to_customize/README.txt
- 6.x modules/encryption/README.txt
- 6.x custom/files/README.txt
- 4.x README.txt
- 4.x modules/tinymce/inc/tiny_mce/plugins/style/readme.txt
- 4.x modules/tinymce/README.txt
- 5.x README.txt
- 5.x modules/tinymce/README.txt
- 5.x modules/batch/README.txt
- 5.x themes/basic/README.txt
- 5.x inc/pchart/README.txt
- 5.x inc/pchart/pchart/readme.txt
- 5.x modules/tinymce/inc/tiny_mce/plugins/style/readme.txt
READEME for Prereqs Module ============================ Hooks ============================ Your custom module can add more prereq conditions through the hook: hook_prereqs_get_prereq_warnings(&$warnings, Course $course, Student $student) $warnings is the existing array of warning messages, if any exist yet. It is passed BY REFERENCE. $course is the course in question. $student is the student who is trying to take the course, which may or may not be set. Example: function mmymodule_prereqs_get_prereq_warnings_for_course(&$warnings, $course, $student) { if ($course->course_id == 12345) { $warnings["some_unique_index"] = "You cannot take this course."; } // We don't return anything, since $warnings was passed by reference. }
File
modules/prereqs/README.txtView source
- READEME for Prereqs Module
-
-
- ============================
- Hooks
- ============================
-
- Your custom module can add more prereq conditions through the hook:
-
- hook_prereqs_get_prereq_warnings(&$warnings, Course $course, Student $student)
-
- $warnings is the existing array of warning messages, if any exist yet. It is passed BY REFERENCE.
- $course is the course in question.
- $student is the student who is trying to take the course, which may or may not be set.
-
- Example:
-
- function mmymodule_prereqs_get_prereq_warnings_for_course(&$warnings, $course, $student) {
-
- if ($course->course_id == 12345) {
- $warnings["some_unique_index"] = "You cannot take this course.";
- }
-
- // We don't return anything, since $warnings was passed by reference.
-
- }