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

get_related_resources()

Description

Return an array of resource references that are related to resource $ref

Parameters

ColumnTypeDefaultDescription
$ref int ID of resource

Return

array

Location

include/resource_functions.php lines 7789 to 7792

Definition

 
function get_related_resources($ref)
    {
    return 
ps_array("select related value from resource_related where resource=? union select resource value from resource_related where related=?",array("i",$ref,"i",$ref));
    }

This article was last updated 19th March 2024 06:35 Europe/London time based on the source file dated 11th March 2024 14:25 Europe/London time.