relate_all_resources()

Description

Relate all resources in the passed array with each other

Parameters

ColumnTypeDefaultDescription
$related array [] Array of resource IDs

Return

boolean

Location

include/resource_functions.php lines 8429 to 8441

Definition

 
function relate_all_resources(array $related = [])
{
    
$error false;
    
array_filter($related"is_int_loose");
    foreach (
$related as $ref) {
        
$other_refs array_diff($related, array($ref));
        
$success update_related_resource($ref$other_refstrue);
        if (!
$success) {
            
$error true;
        }
    }
    return !
$error;
}

This article was last updated 22nd June 2025 11:05 Europe/London time based on the source file dated 5th June 2025 10:55 Europe/London time.