Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_all_resource_types()

Description

Returns all resources types

No permissions are checked or applied, do not expose this function to the API

Parameters

This function accepts no parameters.

Return

array Array of resource types ordered by 'order_by' then 'ref'

Location

include/resource_functions.php lines 3444 to 3462

Definition

 
function get_all_resource_types()
    {
    
$r=ps_query("SELECT ref,
                        name,
                        allowed_extensions,
                        order_by,
                        config_options,
                        tab_name,
                        push_metadata,
                        inherit_global_fields,
                        colour,
                        icon
                   FROM resource_type
               ORDER BY order_by,
                        ref"
,
                        [],
                        
"schema");
    return 
$r;
    }

This article was last updated 2nd December 2022 19:35 Europe/London time based on the source file dated 1st December 2022 17:00 Europe/London time.