Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_resource_type_name()

Parameters

ColumnTypeDefaultDescription
$type

Location

include/resource_functions.php lines 3846 to 3851

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 4th October 2022 17:35 Europe/London time based on the source file dated 30th September 2022 14:20 Europe/London time.