diff --git a/h5p.classes.php b/h5p.classes.php index edd2a86..61153df 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -116,8 +116,6 @@ interface H5PFrameworkInterface { * * @param object $libraryData * Object holding the information that is to be stored - * - * @todo Describe object structure and members so new implementors know what to look for */ public function saveLibraryData(&$libraryData, $new = TRUE); @@ -1526,7 +1524,11 @@ class H5PContentValidator { $this->semanticsCache[$value->library] = $librarySemantics; } $this->validateBySemantics($value->params, $librarySemantics); - $this->filterParams($value, array('library', 'params')); + $validkeys = array('library', 'params'); + if (isset($semantics->extraAttributes)) { + $validkeys = array_merge($validkeys, $semantics->extraAttributes); + } + $this->filterParams($value, $validkeys); } else { $this->h5pF->setErrorMessage($this->h5pF->t('Library used in content is not a valid library according to semantics'));