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 6726 to 6729

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 17th May 2021 22:35 Europe/London time based on the source file dated 11th May 2021 10:25 Europe/London time.