From ICC, allow extra params

namespaces
Svein-Tore Griff With 2013-09-17 15:53:37 +02:00
parent 7d989c648d
commit 1549075a57
1 changed files with 5 additions and 3 deletions

View File

@ -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'));