Collections functions
General functions
Render 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 6657 to 6660

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 29th May 2022 05:35 Europe/London time based on the source file dated 24th May 2022 09:25 Europe/London time.