Integrating Face-to-face sessions on the course page: Difference between revisions
From MoodleDocs
(Moved from "Face-to-face module") |
(Add one of IRD's images) |
||
Line 1: | Line 1: | ||
To display the session dates directly on the course page, add the following | To display the session dates directly on the course page, add the following | ||
code to the print_section() function in course/lib.php: | code to the print_section() function in course/lib.php: | ||
Line 16: | Line 15: | ||
//Accessibility: for files get description via icon. | //Accessibility: for files get description via icon. | ||
It will look like this: | |||
[[Image:Ftof01.png]] |
Revision as of 22:45, 26 February 2008
To display the session dates directly on the course page, add the following code to the print_section() function in course/lib.php:
--- /cvs/moodle18/course/lib.php 2007-10-05 20:19:29.000000000 +1300 +++ course/lib.php 2007-11-06 21:14:08.000000000 +1300 @@ -1382,6 +1382,10 @@ echo ""; } + } elseif ($mod->modname == 'facetoface') { + include_once($CFG->dirroot.'/mod/facetoface/lib.php'); + echo facetoface_print_coursemodule_info($mod); + } else { // Normal activity //Accessibility: for files get description via icon.
It will look like this: