Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_resource_type_name()

Parameters

ColumnTypeDefaultDescription
$type

Location

include/resource_functions.php lines 3841 to 3846

Definition

 
function get_resource_type_name($type)
    {
    global 
$lang;
    if (
$type==999) {return $lang["archive"];}
    return 
lang_or_i18n_get_translated(ps_value("select name value from resource_type where ref=?",array("i",$type), "schema"),"resourcetype-");
    }

This article was last updated 26th June 2022 03:05 Europe/London time based on the source file dated 24th June 2022 09:15 Europe/London time.