Changes between Version 43 and Version 44 of BoltRef


Ignore:
Timestamp:
Oct 28, 2008, 4:45:11 PM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BoltRef

    v43 v44  
    202202Typically, this function will modify the user attributes based on the score
    203203and/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 
     204It is called as
     205{{{
     206callback($score, $qs)
     207}}}
     208where '''$score''' is the exercise score
     209and '''$qs''' is the query string.
     210Use
     211{{{
     212parse_str($qs);
     213}}}
     214to parse this into form variables.
    215215The variable names are of the following forms
    216216(N is the index of each question: 0, 1, ...).