Plugin Directory

Changeset 1328985


Ignore:
Timestamp:
01/15/2016 01:01:24 PM (10 years ago)
Author:
Tunapanda
Message:

trigger wordpress action on saved xapi statement

Location:
wp-h5p-xapi/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-h5p-xapi/trunk/process-xapi-statement.php

    r1297101 r1328985  
    6565}
    6666
     67do_action("h5p-xapi-post-save",$statementObject);
     68
    6769$response=array(
    6870    "ok"=>1
  • wp-h5p-xapi/trunk/wp-h5p-xapi.js

    r1310920 r1328985  
    7575
    7676        if (typeof event.data.statement.context == 'undefined') {
    77             console.log("here, context");
     77            //console.log("here, context");
    7878            event.data.statement.context = {};
    7979        }
    8080        if (typeof event.data.statement.context.contextActivities == 'undefined') {
    81             console.log("here, contextActivities");
     81            //console.log("here, contextActivities");
    8282            event.data.statement.context.contextActivities = {};
    8383        }
    8484        if (typeof event.data.statement.context.contextActivities.grouping == 'undefined') {
    85             console.log("here, grouping");
     85            //console.log("here, grouping");
    8686            event.data.statement.context.contextActivities.grouping = [];
    8787        }
  • wp-h5p-xapi/trunk/wp-h5p-xapi.php

    r1328241 r1328985  
    99Plugin URI: http://github.com/tunapanda/wp-h5p-xapi
    1010Description: Send H5P achievements to an xAPI repo.
    11 Version: 0.0.7
     11Version: 0.0.8
    1212*/
    1313
Note: See TracChangeset for help on using the changeset viewer.