Loading modules/h5peditor/h5peditor/h5peditor-storage.interface.php +11 −0 Original line number Diff line number Diff line Loading @@ -25,4 +25,15 @@ interface H5peditorStorage { * TODO */ public function getLibraries($libraries = NULL); /** * Alter styles and scripts * * @param array $files * List of files as objects with path and version as properties * @param array $libraries * List of libraries indexed by machineName with objects as values. The objects * have majorVersion and minorVersion as properties. */ public function alterFiles(&$files, $libraries); } modules/h5peditor/h5peditor/h5peditor.class.php +1 −0 Original line number Diff line number Diff line Loading @@ -318,6 +318,7 @@ class H5peditor { $libraryData->language = $this->storage->getLanguage($machineName, $majorVersion, $minorVersion, $languageCode); $files = $this->h5p->getDependenciesFiles($libraries); $this->storage->alterFiles($files, $libraries); // Javascripts if (!empty($files['scripts'])) { Loading Loading
modules/h5peditor/h5peditor/h5peditor-storage.interface.php +11 −0 Original line number Diff line number Diff line Loading @@ -25,4 +25,15 @@ interface H5peditorStorage { * TODO */ public function getLibraries($libraries = NULL); /** * Alter styles and scripts * * @param array $files * List of files as objects with path and version as properties * @param array $libraries * List of libraries indexed by machineName with objects as values. The objects * have majorVersion and minorVersion as properties. */ public function alterFiles(&$files, $libraries); }
modules/h5peditor/h5peditor/h5peditor.class.php +1 −0 Original line number Diff line number Diff line Loading @@ -318,6 +318,7 @@ class H5peditor { $libraryData->language = $this->storage->getLanguage($machineName, $majorVersion, $minorVersion, $languageCode); $files = $this->h5p->getDependenciesFiles($libraries); $this->storage->alterFiles($files, $libraries); // Javascripts if (!empty($files['scripts'])) { Loading