Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 7302 to 7305

Definition

 
function get_related_resources($ref)
    {
    return 
sql_array("select related value from resource_related where resource='" escape_check($ref) . "' union select resource value from resource_related where related='" escape_check($ref) . "'");
    }

This article was last updated 30th November 2020 17:35 Europe/London time based on the source file dated 30th November 2020 11:55 Europe/London time.