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

get_resource_type_name()

Parameters

ColumnTypeDefaultDescription
$type

Location

include/resource_functions.php lines 4213 to 4218

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 19th March 2024 05:05 Europe/London time based on the source file dated 11th March 2024 14:25 Europe/London time.