mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-29538 core_condition: initial commit to add support for making things conditional on user profile fields
This commit is contained in:
parent
6be7840ce6
commit
76af15bb4c
11 changed files with 399 additions and 10 deletions
|
@ -4584,6 +4584,9 @@ function remove_course_contents($courseid, $showfeedback = true, array $options
|
|||
$DB->delete_records_select('course_modules_availability',
|
||||
'coursemoduleid IN (SELECT id from {course_modules} WHERE course=?)',
|
||||
array($courseid));
|
||||
$DB->delete_records_select('course_modules_availability_field',
|
||||
'coursemoduleid IN (SELECT id from {course_modules} WHERE course=?)',
|
||||
array($courseid));
|
||||
|
||||
// Remove course-module data.
|
||||
$cms = $DB->get_records('course_modules', array('course'=>$course->id));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue