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

collection_set_public()

Description

Set an existing collection to be public

Parameters

ColumnTypeDefaultDescription
$collection integer ID of collection

Return

boolean

Location

include/collections_functions.php lines 3731 to 3740

Definition

 
function collection_set_public($collection)
    {
        if (
is_numeric($collection)){
            
$sql "UPDATE collection SET `type` = " COLLECTION_TYPE_PUBLIC " WHERE ref = ?";
            
ps_query($sql,array("i",$collection));
            return 
true;
        } else {
            return 
false;
        }
    }

This article was last updated 19th March 2024 07:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.