Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_metadata_templates()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 5780 to 5785

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 
ps_query("select ref,field$metadata_template_title_field from resource where ref>0 and resource_type= ? order by field$metadata_template_title_field", ['i'$metadata_template_resource_type]);
    }

This article was last updated 19th March 2024 04:05 Europe/London time based on the source file dated 11th March 2024 14:25 Europe/London time.