From b28624ba8ef1d8db879ed8b781d6b9db7c9cdb89 Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Mon, 26 Mar 2018 17:44:00 +0200 Subject: [PATCH] HFP-1905 Allow metadata as keyword for subcontent --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index 659475c..23a125c 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -3736,7 +3736,7 @@ class H5PContentValidator { 'type' => 'group', 'fields' => $library['semantics'], ), FALSE); - $validKeys = array('library', 'params', 'subContentId'); + $validKeys = array('library', 'params', 'subContentId', 'metadata'); if (isset($semantics->extraAttributes)) { $validKeys = array_merge($validKeys, $semantics->extraAttributes); }