MDL-20204 more steps away from old popup_form

This commit is contained in:
Petr Skoda 2010-02-10 11:25:17 +00:00
parent f1a3e072fa
commit 31dadc6fee
2 changed files with 38 additions and 35 deletions

View file

@ -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;
}