Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_metadata_templates()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 4927 to 4932

Definition

 
function get_metadata_templates()
    {
    
# Returns a list of all metadata templates; i.e. resources that have been set to the resource type specified via '$metadata_template_resource_type'.
    
global $metadata_template_resource_type,$metadata_template_title_field;
    return 
sql_query("select ref,field$metadata_template_title_field from resource where ref>0 and resource_type='$metadata_template_resource_type' order by field$metadata_template_title_field");
    }

This article was last updated 14th July 2020 01:35 Europe/London time based on the source file dated 13th July 2020 14:40 Europe/London time.