Skip to content

Commit

Permalink
make survey intro into description
Browse files Browse the repository at this point in the history
  • Loading branch information
milt committed Nov 12, 2024
1 parent 8ae97a0 commit 70f2ac0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/transformer/utils/get_activity/course_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ function course_module(array $config, \stdClass $course, int $cmid) {
);
}

// Survey
if ($module->name === 'survey') {
$def = [
'type' => $activitytype,
'name' => [
$courselang => $instancename,
],
'description' => [
$courselang => utils\get_string_html_removed($instance->intro),
],
];
}

$object = [
'id' => $coursemoduleurl,
'definition' => $def,
Expand Down

0 comments on commit 70f2ac0

Please sign in to comment.