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 4246 to 4251

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 23rd April 2024 21:35 Europe/London time based on the source file dated 18th April 2024 16:10 Europe/London time.