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 1295 to 1300

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 5th May 2024 11:05 Europe/London time based on the source file dated 3rd May 2024 14:45 Europe/London time.