mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-22414 Exclude unsupported modules from the course contents
This commit is contained in:
parent
b61cf3ff8a
commit
b7119f4f3f
1 changed files with 6 additions and 0 deletions
|
@ -826,6 +826,12 @@ class moodle1_course_outline_handler extends moodle1_xml_handler {
|
||||||
public function process_course_module($data, $raw) {
|
public function process_course_module($data, $raw) {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
|
// check that this type of module should be included in the mbz
|
||||||
|
$modinfo = $this->converter->get_stash_itemids('modinfo_'.$data['modulename']);
|
||||||
|
if (empty($modinfo)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// add the course module into the course contents list
|
// add the course module into the course contents list
|
||||||
$this->coursecontents[$data['id']] = array(
|
$this->coursecontents[$data['id']] = array(
|
||||||
'cmid' => $data['id'],
|
'cmid' => $data['id'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue