Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

remove_from_collection_link()

Description

Render a "remove from collection" link wherever such a function is shown in the UI

Parameters

ColumnTypeDefaultDescription
$resource integer
$search string ""
$class string ""

Return

void

Location

include/collections_functions.php lines 2603 to 2609

Definition

 
function remove_from_collection_link($resource,$search="",$class="")
    {
    
# Generates a HTML link for removing a resource to a collection
    
global $lang$pagename;

    return 
"<a class=\"removeFromCollection " $class "\" href=\"#\" title=\"" $lang["removefromcurrentcollection"] . "\" onClick=\"RemoveResourceFromCollection(event,'" $resource "','" $pagename "');return false;\">";
    }

This article was last updated 30th November 2020 13:35 Europe/London time based on the source file dated 25th November 2020 10:35 Europe/London time.