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 6695 to 6698

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 3rd March 2021 20:05 Europe/London time based on the source file dated 2nd March 2021 14:45 Europe/London time.