aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions_metadata.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/include/functions_metadata.php')
-rw-r--r--admin/include/functions_metadata.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/admin/include/functions_metadata.php b/admin/include/functions_metadata.php
index ad45aca12..23b04833c 100644
--- a/admin/include/functions_metadata.php
+++ b/admin/include/functions_metadata.php
@@ -204,4 +204,28 @@ SELECT id, path
return $files;
}
+
+// used_metadata string is displayed to inform admin which metadata will be
+// used from files for synchronization
+function get_used_metadata_list()
+{
+ global $conf;
+
+ $used_metadata = array('filesize', 'width', 'height');
+
+ if ($conf['use_exif'])
+ {
+ array_push($used_metadata, 'date_creation');
+ }
+
+ if ($conf['use_iptc'])
+ {
+ foreach (array_keys($conf['use_iptc_mapping']) as $key)
+ {
+ array_push($used_metadata, $key);
+ }
+ }
+
+ return array_unique($used_metadata);
+}
?> \ No newline at end of file