MDL-15497 Conditional activities system

This commit is contained in:
agrabs
2008-07-31 12:55:24 +00:00
parent 209881523a
commit 29081d02b9
2 changed files with 15 additions and 0 deletions
+5
View File
@@ -303,6 +303,11 @@
echo '</p>';
}
}
// Mark activity viewed for completion-tracking
$completion=new completion_info($course);
$completion->set_module_viewed($cm);
if($feedback->site_after_submit) {
print_continue(feedback_encode_target_url($feedback->site_after_submit));
}else {
+10
View File
@@ -36,6 +36,16 @@ function feedback_install() {
return true;
}
/**
* @param string $feature FEATURE_xx constant for requested feature
* @return mixed True if module supports feature, null if doesn't know
*/
function feedback_supports($feature) {
switch($feature) {
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
default: return null;
}
}
/**
* this will create a new instance and return the id number