Collections functions
Encryption functions
General 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 2570 to 2579

Definition

 
function collection_set_public($collection)
    {
        if (
is_numeric($collection)){
            
$sql "update collection set public = '1' where ref = '$collection'";
            
sql_query($sql);
            return 
true;
        } else {
            return 
false;
        }
    }

This article was last updated 21st September 2020 21:05 Europe/London time based on the source file dated 10th September 2020 16:30 Europe/London time.