Skip to content

Commit

Permalink
Merge branch 'MDL-72463-master' of git://github.com/ferranrecio/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols authored and stronk7 committed Oct 5, 2021
2 parents 3868d35 + 96c6dc5 commit b7687bf
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 3 deletions.
2 changes: 1 addition & 1 deletion course/format/amd/build/local/courseeditor/exporter.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions course/format/amd/src/local/courseeditor/exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default class {
const data = {
sections: [],
editmode: this.reactive.isEditing,
highlighted: state.course.highlighted ?? '',
};
const sectionlist = state.course.sectionlist ?? [];
sectionlist.forEach(sectionid => {
Expand Down
9 changes: 9 additions & 0 deletions course/format/classes/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,15 @@ public function get_default_section_name($section) {
return self::get_section_name($section);
}

/**
* Returns the name for the highlighted section.
*
* @return string The name for the highlighted section based on the given course format.
*/
public function get_section_highlighted_name(): string {
return get_string('highlighted');
}

/**
* Set if the current format instance will show multiple sections or an individual one.
*
Expand Down
Loading

0 comments on commit b7687bf

Please sign in to comment.