Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

update_collection_parent()

Description

Update collection parent for this collection

Parameters

ColumnTypeDefaultDescription
$cid int
$parent int
@cid integer The collection ID
@parent integer The featured collection ID that is the parent of this collection

Return

boolean

Location

include/collections_functions.php lines 5348 to 5359

Definition

 
function update_collection_parent(int $cidint $parent)
    {
    if(
$cid <= || $parent <= 0)
        {
        return 
false;
        }

    
collection_log($cidLOG_CODE_EDITED"""Update collection parent to '{$parent}'");
    
ps_query("UPDATE collection SET `parent` = ? WHERE ref = ?", ['i'$parent'i'$cid]);

    return 
true;
    }

This article was last updated 5th May 2024 13:05 Europe/London time based on the source file dated 3rd May 2024 14:45 Europe/London time.