Commit 535d5758 authored by icc's avatar icc

Fixed issue where contents get included with embed type that's not available to that library.

parent d217ff6f
......@@ -169,6 +169,7 @@ function h5p_insert($node) {
* Implements hook_update().
*/
function h5p_update($node) {
// TODO: Determine correct embed type before saving. Now everything gets 'div'.
if (isset($_SESSION['h5p_upload'])) {
if ($node->revision && variable_get('h5p_revisioning', 1)) {
h5p_insert($node);
......@@ -245,7 +246,7 @@ function h5p_load($nodes) {
'machineName' => $h5p->machine_name,
'majorVersion' => $h5p->major_version,
'minorVersion' => $h5p->minor_version,
'embedTypes' => $h5p->embed_type,
'embedTypes' => $h5p->embed_types,
);
unset($h5p->machine_name, $h5p->major_version, $h5p->minor_version, $h5p->embed_types);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment