mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-20204 more steps away from old popup_form
This commit is contained in:
parent
f1a3e072fa
commit
31dadc6fee
2 changed files with 38 additions and 35 deletions
|
@ -163,21 +163,6 @@ function label_get_post_actions() {
|
|||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return object
|
||||
*/
|
||||
function label_get_types() {
|
||||
$types = array();
|
||||
|
||||
$type = new object();
|
||||
$type->modclass = MOD_CLASS_RESOURCE;
|
||||
$type->type = "label";
|
||||
$type->typestr = get_string('resourcetypelabel', 'resource');
|
||||
$types[] = $type;
|
||||
|
||||
return $types;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used by the reset_course_userdata function in moodlelib.
|
||||
*
|
||||
|
@ -219,6 +204,7 @@ function label_supports($feature) {
|
|||
case FEATURE_COMPLETION_TRACKS_VIEWS: return false;
|
||||
case FEATURE_GRADE_HAS_GRADE: return false;
|
||||
case FEATURE_GRADE_OUTCOMES: return false;
|
||||
case FEATURE_MOD_ARCHETYPE: return MOD_ARCHETYPE_RESOURCE;
|
||||
|
||||
default: return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue