Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 7033 to 7036

Definition

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

This article was last updated 19th March 2024 06:35 Europe/London time based on the source file dated 11th March 2024 14:25 Europe/London time.