public function SimpleExifToolFacade::getMetadataFields in Exif 7
Same name and namespace in other branches
- 8.2 src/SimpleExifToolFacade.php \Drupal\exif\SimpleExifToolFacade::getMetadataFields()
- 8 src/SimpleExifToolFacade.php \Drupal\exif\SimpleExifToolFacade::getMetadataFields()
Going through all the fields that have been created for a given node type and try to figure out which match the naming convention -> so that we know which exif information we have to read
Naming convention are: field_exif_xxx (xxx would be the name of the exif tag to read
Parameters
$arCckFields array of CCK fields:
Return value
array a list of exif tags to read for this image
Overrides ExifInterface::getMetadataFields
File
- ./
SimpleExiftoolFacade.php, line 69
Class
Namespace
Drupal\exifCode
public function getMetadataFields($arCckFields = array()) {
foreach ($arCckFields as $drupal_field => $metadata_settings) {
$metadata_field = $metadata_settings['metadata_field'];
$ar = explode("_", $metadata_field);
if (isset($ar[0])) {
$section = $ar[0];
unset($ar[0]);
$arCckFields[$drupal_field]['metadata_field'] = array(
'section' => $section,
'tag' => implode("_", $ar),
);
}
}
return $arCckFields;
}