MDL-15497 Conditional activities system
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user