Index: temp_moodle_dev/lamstwo/lib.php =================================================================== RCS file: /usr/local/cvsroot/temp_moodle_dev/lamstwo/Attic/lib.php,v diff -u -r1.7 -r1.8 --- temp_moodle_dev/lamstwo/lib.php 18 Aug 2008 07:31:54 -0000 1.7 +++ temp_moodle_dev/lamstwo/lib.php 21 Aug 2008 00:23:06 -0000 1.8 @@ -19,6 +19,7 @@ $LAMS2CONSTANTS->author_method = 'author'; $LAMS2CONSTANTS->monitor_method = 'monitor'; $LAMS2CONSTANTS->learner_method = 'learner'; +$LAMS2CONSTANTS->custom_csv = 'customCSV'; /* * Given an object containing all the necessary data, @@ -612,7 +613,7 @@ * Return URL to join a LAMS lesson as a learner or staff depending on method. * URL redirects LAMS to learner or monitor interface depending on method. */ -function lamstwo_get_url($username, $lang, $country, $lessonid, $courseid, $method) { +function lamstwo_get_url($username, $lang, $country, $lessonid, $courseid, $method, $customcsv='') { global $CFG, $LAMS2CONSTANTS; $datetime = date('F d,Y g:i a'); @@ -632,6 +633,9 @@ '&'.$LAMS2CONSTANTS->param_courseid.'='.$courseid. '&'.$LAMS2CONSTANTS->param_country.'='.trim($country). '&'.$LAMS2CONSTANTS->param_lang.'='.substr(trim($lang),0,2); + if ($customcsv != '') { + $url .= '&'.$LAMS2CONSTANTS->custom_csv.'='.$customcsv; + } return $url; } Index: temp_moodle_dev/lamstwo/view.php =================================================================== RCS file: /usr/local/cvsroot/temp_moodle_dev/lamstwo/Attic/view.php,v diff -u -r1.4 -r1.5 --- temp_moodle_dev/lamstwo/view.php 18 Aug 2008 07:31:54 -0000 1.4 +++ temp_moodle_dev/lamstwo/view.php 21 Aug 2008 00:23:06 -0000 1.5 @@ -60,7 +60,8 @@ //--> XXX; - $authorurl = lamstwo_get_url($USER->username, $locale['lang'], $locale['country'], 0, $course->id, $LAMS2CONSTANTS->author_method); + $customcsv = "$USER->username,$course->id,$cm->section"; + $authorurl = lamstwo_get_url($USER->username, $locale['lang'], $locale['country'], 0, $course->id, $LAMS2CONSTANTS->author_method, $customcsv); echo $openauthorjs;