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

Return

void

Location

include/collections_functions.php lines 921 to 926

Definition

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

This article was last updated 25th November 2020 07:05 Europe/London time based on the source file dated 23rd November 2020 16:00 Europe/London time.