Skip to content
Snippets Groups Projects
Commit 9e289deb authored by Svein-Tore Griff With's avatar Svein-Tore Griff With
Browse files

Merge branch '7.x-1.x-release' into 7.x-1.x

parents 828cc9f9 0a2c57e9
No related branches found
Tags 8.x-3.0-alpha33
No related merge requests found
......@@ -6,6 +6,13 @@
* Install and upgrade instructions for the h5p Drupal module.
*/
/**
* Implements hook_disable
*/
function h5p_disable() {
drupal_set_message("The H5P Community is working hard every day to improve H5P. Would you like to drop them a one-liner about how they may improve H5P or why you disabled the module? <a href=\"https://h5p.org/drupal-module-disabled\">https://h5p.org/drupal-module-disabled</a>");
}
/**
* Implements hook_uninstall().
*/
......
......@@ -96,7 +96,7 @@ H5P.EventDispatcher.prototype.setActivityStarted = function() {
* @param {H5P.XAPIEvent} event
*/
H5P.xAPICompletedListener = function (event) {
if (event.getVerb() === 'completed' && !event.getVerifiedStatementValue(['context', 'contextActivities', 'parent'])) {
if ((event.getVerb() === 'completed' || event.getVerb() === 'answered') && !event.getVerifiedStatementValue(['context', 'contextActivities', 'parent'])) {
var score = event.getScore();
var maxScore = event.getMaxScore();
var contentId = event.getVerifiedStatementValue(['object', 'definition', 'extensions', 'http://h5p.org/x-api/h5p-local-content-id']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment