You are here

function opigno_scorm_add_cmi_paths in Opigno SCORM 3.x

Same name and namespace in other branches
  1. 8 opigno_scorm.module \opigno_scorm_add_cmi_paths()

Get the available CMI paths for the SCORM player.

Invokes the hook_opigno_scorm_register_cmi_paths() on all implementing modules to retrieve data to pass to the SCORM player.

1 call to opigno_scorm_add_cmi_paths()
OpignoScormPlayer::toRendarableArray in src/OpignoScormPlayer.php
Build rendarable array for scorm package output.

File

./opigno_scorm.module, line 45
Module functionality implementation.

Code

function opigno_scorm_add_cmi_paths($scorm_version) {
  $paths = \Drupal::moduleHandler()
    ->invokeAll('opigno_scorm_register_cmi_paths', [
    $scorm_version,
  ]);
  \Drupal::moduleHandler()
    ->alter('opigno_scorm_register_cmi_paths', $paths);
  return $paths;
}