Collections functions
Encryption functions
General functions
Theme permission 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 6187 to 6190

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 12th July 2020 06:35 Europe/London time based on the source file dated 10th July 2020 16:06 Europe/London time.