Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

copyRelatedResources()

Description

Copy related resources from one resource to another

Parameters

ColumnTypeDefaultDescription
$from integer Resource we are copying related resources from
$to
$ref integer Resource we are copying related resources to

Return

void

Location

include/resource_functions.php lines 6554 to 6557

Definition

 
function copyRelatedResources($from$to)
    {
    
sql_query("insert into resource_related(resource,related) SELECT '$to',related FROM resource_related WHERE resource='$from' AND related <> '$to'");
    }

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