function hook_opigno_scorm_ui_register_cmi_paths in Opigno 7
Implements hook_opigno_scorm_ui_register_cmi_paths().
Allows modules to register CMI data paths. The SCORM API object provided by Opigno Scorm ignores un-implemented CMI paths when a SCO tries to store/retrieve that data (as per ADL Requirements).
This hook allows module to let the API know it's ok to let the SCO use these paths. Every key is a CMI path. Each key can have a 'readOnly' or a 'writeOnly' value, which should easily be castable to a boolean.
Return value
array
2 functions implement hook_opigno_scorm_ui_register_cmi_paths()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- opigno_scorm_quiz_opigno_scorm_ui_register_cmi_paths in modules/
scorm/ quiz/ opigno_scorm_quiz.module - Implements hook_opigno_scorm_ui_register_cmi_paths().
- opigno_scorm_ui_opigno_scorm_ui_register_cmi_paths in modules/
scorm/ ui/ opigno_scorm_ui.module - Implements hook_opigno_scorm_ui_register_cmi_paths().
1 invocation of hook_opigno_scorm_ui_register_cmi_paths()
- opigno_scorm_ui_add_cmi_paths in modules/
scorm/ ui/ includes/ opigno_scorm_ui.player.inc - Get the available CMI paths for the SCORM player.
File
- modules/
scorm/ ui/ opigno_scorm_ui.api.php, line 21 - This file contains module hooks definitions and documentation.
Code
function hook_opigno_scorm_ui_register_cmi_paths() {
return array(
'cmi.location' => array(),
'cmi.objectives._count' => array(
'readOnly' => 1,
),
'cmi.objectives._children' => array(
'writeOnly' => 1,
),
);
}