Merge branch 'MDL-73993-MOODLE_311' of https://github.com/golenkovm/moodle into MOODLE_311_STABLE
This commit is contained in:
+4
-4
@@ -556,11 +556,11 @@ function get_array_of_activities($courseid) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the localised human-readable names of all used modules
|
||||
* Returns an array where the key is the module name (component name without 'mod_')
|
||||
* and the value is a lang_string object with a human-readable string.
|
||||
*
|
||||
* @param bool $plural if true returns the plural forms of the names
|
||||
* @return array where key is the module name (component name without 'mod_') and
|
||||
* the value is the human-readable string. Array sorted alphabetically by value
|
||||
* @param bool $plural If true, the function returns the plural forms of the names.
|
||||
* @return lang_string[] Localised human-readable names of all used modules.
|
||||
*/
|
||||
function get_module_types_names($plural = false) {
|
||||
static $modnames = null;
|
||||
|
||||
+3
-3
@@ -1500,10 +1500,10 @@ class cm_info implements IteratorAggregate {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a localised human-readable name of the module type
|
||||
* Returns a localised human-readable name of the module type.
|
||||
*
|
||||
* @param bool $plural return plural form
|
||||
* @return string
|
||||
* @param bool $plural If true, the function returns the plural form of the name.
|
||||
* @return lang_string
|
||||
*/
|
||||
public function get_module_type_name($plural = false) {
|
||||
$modnames = get_module_types_names($plural);
|
||||
|
||||
Reference in New Issue
Block a user