Skip to content

Commit

Permalink
merging from head so that calculated questions can be imported and ot…
Browse files Browse the repository at this point in the history
…her improvments
  • Loading branch information
pichetp committed May 15, 2007
1 parent 63336df commit 339bb9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion question/editlib.php
Expand Up @@ -25,7 +25,7 @@
* @param bool $recurse include subdirectories
* @author added by Howard Miller June 2004
*/
function get_questions_category( $category, $noparent=false, $recurse=true ) {
function get_questions_category( $category, $noparent=false, $recurse=true, $export=true ) {

global $QTYPES;

Expand All @@ -52,6 +52,7 @@ function get_questions_category( $category, $noparent=false, $recurse=true ) {
// iterate through questions, getting stuff we need
foreach($questions as $question) {
$questiontype = $QTYPES[$question->qtype];
$question->export_process = $export;
$questiontype->get_question_options( $question );
$qresults[] = $question;
}
Expand Down
5 changes: 5 additions & 0 deletions question/format.php
Expand Up @@ -308,6 +308,11 @@ function defaultquestion() {
$question->incorrectfeedback = '';
$question->penalty = 0.1;

// this option in case the questiontypes class wants
// to know where the data came from
$question->export_process = true;
$question->import_process = true;

return $question;
}

Expand Down

0 comments on commit 339bb9b

Please sign in to comment.