Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

remove_collection()

Description

Remove someone else's collection from a user's My Collections

Parameters

ColumnTypeDefaultDescription
$user integer
$collection integer

Location

include/collections_functions.php lines 1008 to 1013

Definition

 
function remove_collection($user,$collection)
    {
    
sql_query("delete from user_collection where user='" escape_check($user) . "' and collection='" escape_check($collection) . "'");
    
clear_query_cache('col_total_ref_count_w_perm');
    
collection_log($collection,LOG_CODE_COLLECTION_STOPPED_SHARING_COLLECTION,0sql_value ("select username as value from user where ref = '" escape_check($user) . "'",""));
    }

This article was last updated 4th March 2021 08:35 Europe/London time based on the source file dated 3rd March 2021 17:05 Europe/London time.