Skip to content

Commit

Permalink
Update mod/youtubevideo/lib.php
Browse files Browse the repository at this point in the history
Co-authored-by: Alexis C. TADIFO <alexis.tadifo@gmail.com>
  • Loading branch information
karimalik and SanAlexis authored Sep 6, 2024
1 parent 5020cac commit e36dc15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mod/youtubevideo/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ function youtubevideo_supports($feature)
case FEATURE_BACKUP_MOODLE2: return true;
default: return null;
}
function youtubevideo_supports($feature)
{
$features = [
FEATURE_MOD_INTRO => true,
FEATURE_SHOW_DESCRIPTION => true,
FEATURE_GRADE_HAS_GRADE => false,
FEATURE_BACKUP_MOODLE2 => true,
];

return $features[$feature] ?? null;
}

function get_youtube_id($url)
Expand Down

0 comments on commit e36dc15

Please sign in to comment.