Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

render_clear_selected_btn()

Description

Renders the "Clear selected" button. This is using the special 'COLLECTION_TYPE_SELECTION' collection

Parameters

This function accepts no parameters.

Return

void

Location

include/render_functions.php lines 3695 to 3705

Definition

 
function render_clear_selected_btn()
    {
    global 
$lang$USER_SELECTION_COLLECTION$CSRF_token_identifier$usersession;

    
$attributes  " id=\"ClearSelectedResourcesBtn\" class=\"ClearSelectedButton\"";
    
$attributes .= " onclick=\"ClearSelectionCollection(this);\"";
    
$attributes .= " data-csrf-token-identifier=\"{$CSRF_token_identifier}\"";
    
$attributes .= " data-csrf-token=\"" generateCSRFToken($usersession"clear_selected_btn_{$USER_SELECTION_COLLECTION}") . "\"";

    
render_filter_bar_button($lang["clear_selected"], $attributesICON_REMOVE);
    }

This article was last updated 15th December 2024 19:35 Europe/London time based on the source file dated 13th December 2024 14:05 Europe/London time.