Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 1293 to 1298

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 19th March 2024 01:35 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.