Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 2822 to 2831

Definition

 
function collection_set_public($collection)
    {
        if (
is_numeric($collection)){
            
$sql "UPDATE collection SET `type` = " COLLECTION_TYPE_PUBLIC " WHERE ref = '$collection'";
            
sql_query($sql);
            return 
true;
        } else {
            return 
false;
        }
    }

This article was last updated 18th January 2021 05:05 Europe/London time based on the source file dated 13th January 2021 13:50 Europe/London time.