Collections functions
General functions
Render 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

Location

include/collections_functions.php lines 1229 to 1234

Definition

 
function remove_collection($user,$collection)
    {
    
ps_query("delete from user_collection where user=? and collection=?",array("i",$user,"i",$collection));
    
clear_query_cache('col_total_ref_count_w_perm');
    
collection_log($collection,LOG_CODE_COLLECTION_STOPPED_SHARING_COLLECTION,0ps_value ("select username as value from user where ref = ?",array("i",$user),""));
    }

This article was last updated 30th September 2022 16:05 Europe/London time based on the source file dated 22nd September 2022 11:00 Europe/London time.