Changes between Version 43 and Version 44 of BoltRef
- Timestamp:
- Oct 28, 2008, 4:45:11 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BoltRef
v43 v44 202 202 Typically, this function will modify the user attributes based on the score 203 203 and/or the specific responses to the exercise. 204 The score is available using 205 {{{ 206 global $bolt_ex; 207 $score = $bolt_ex->score; 208 }}} 209 The specific responses are available using 210 {{{ 211 global $bolt_ex; 212 parse_str($ bolt_ex->query_string);213 }}} 214 204 It is called as 205 {{{ 206 callback($score, $qs) 207 }}} 208 where '''$score''' is the exercise score 209 and '''$qs''' is the query string. 210 Use 211 {{{ 212 parse_str($qs); 213 }}} 214 to parse this into form variables. 215 215 The variable names are of the following forms 216 216 (N is the index of each question: 0, 1, ...).