function opigno_scorm_extract_manifest_metadata in Opigno 7
Extract the manifest metadata.
Find the metadata of this manifest file and return it. We only treat global metadata - we don't parse metadata on SCOs or resources.
Parameters
array $manifest:
Return value
array
1 call to opigno_scorm_extract_manifest_metadata()
- opigno_scorm_extract_manifest_data in modules/
scorm/ includes/ opigno_scorm.manifest.inc - Extract the manifest data.
File
- modules/
scorm/ includes/ opigno_scorm.manifest.inc, line 225 - Manifest file extraction logic.
Code
function opigno_scorm_extract_manifest_metadata($manifest) {
foreach ($manifest['children'] as $child) {
if ($child['name'] == OPIGNO_SCORM_MANIFEST_METADATA) {
$meta = array();
foreach ($child['children'] as $metadata) {
$meta[strtolower($metadata['name'])] = $metadata['tagData'];
}
return $meta;
}
}
return array();
}