Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

can_delete_collection()

Parameters

ColumnTypeDefaultDescription
$collection_data array
$userref
$k ""

Location

include/collections_functions.php lines 6768 to 6774

Definition

 
function can_delete_collection(array $collection_data$userref$k "")
    {
    return (
$k == '' 
            
&& (($userref == $collection_data['user']) || checkperm('h')) 
            && 
$collection_data['cant_delete'] == 0
        && 
$collection_data['type'] != COLLECTION_TYPE_REQUEST;
    }

This article was last updated 27th April 2024 13:05 Europe/London time based on the source file dated 25th April 2024 16:25 Europe/London time.