Collections functions
Encryption functions
General functions
Theme permission 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 825 to 830

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 15th July 2020 04:35 Europe/London time based on the source file dated 14th July 2020 15:34 Europe/London time.