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 ""
$onclick string '' Additional onclick code to call before returning false.

Return

void

Location

include/collections_functions.php lines 2682 to 2688

Definition

 
function remove_from_collection_link($resource,$search="",$class=""string $onclick '')
    {
    
# 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 "');{$onclick} return false;\" data-resource-ref=\"{$resource}\">";
    }

This article was last updated 25th February 2021 16:05 Europe/London time based on the source file dated 24th February 2021 09:50 Europe/London time.