mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-7401 Course format database/backup/lang/stylesheet/capability support
This commit is contained in:
parent
b7e771ce20
commit
ae628043a0
15 changed files with 344 additions and 10 deletions
|
@ -2197,4 +2197,16 @@ function move_courses ($courseids, $categoryid) {
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $format Course format ID e.g. 'weeks'
|
||||
* @return Name that the course format prefers for sections
|
||||
*/
|
||||
function get_section_name($format) {
|
||||
$sectionname = get_string("name$format","format_$format");
|
||||
if($sectionname == "[[name$format]]") {
|
||||
$sectionname = get_string("name$format");
|
||||
}
|
||||
return $sectionname;
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue