Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_related_resources()

Parameters

ColumnTypeDefaultDescription
$ref

Location

include/resource_functions.php lines 7135 to 7139

Definition

 
function get_related_resources($ref)
    {
    
# Return an array of resource references that are related to resource $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 5th July 2020 05:35 Europe/London time based on the source file dated 30th June 2020 12:14 Europe/London time.