Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

get_exiftool_fields()

Description

Returns a list of exiftool fields, which are basically fields with an 'exiftool field' set.

Parameters

ColumnTypeDefaultDescription
$resource_type
resource_type integer

Return

array

Location

include/resource_functions.php lines 3808 to 3826

Definition

 
function get_exiftool_fields($resource_type)
    {
    
$resource_type escape_check($resource_type);

    return 
sql_query("
           SELECT f.ref,
                  f.type,
                  f.exiftool_field,
                  f.exiftool_filter,
                  group_concat(n.name) AS options,
                  f.name,
                  f.read_only
             FROM resource_type_field AS f
        LEFT JOIN node AS n ON f.ref = n.resource_type_field
            WHERE length(exiftool_field) > 0
              AND (resource_type = '
$resource_type' OR resource_type = '0')
         GROUP BY f.ref
         ORDER BY exiftool_field"
"schema");
    }

This article was last updated 30th November 2020 19:35 Europe/London time based on the source file dated 30th November 2020 11:55 Europe/London time.