refresh_collection_frame()

Description

Adds script to page that refreshes the Collection bar

Parameters

ColumnTypeDefaultDescription
$collection integer "" Collection id

Return

void

Location

include/collections_functions.php lines 892 to 906

Definition

 
function refresh_collection_frame($collection "")
{
    
# Refresh the CollectionDiv
    
global $baseurl$headerinsert;

    if (
getval("ajax"false)) {
        echo 
"<script  type=\"text/javascript\">
        CollectionDivLoad(\"" 
$baseurl "/pages/collections.php" . ((getval("k""") != "") ? "?collection=" urlencode(getval("collection"$collection)) . "&k=" urlencode(getval("k""")) . "&" "?") . "nc=" time() . "\");    
        </script>"
;
    } else {
        
$headerinsert .= "<script  type=\"text/javascript\">
        CollectionDivLoad(\"" 
$baseurl "/pages/collections.php" . ((getval("k""") != "") ? "?collection=" urlencode(getval("collection"$collection)) . "&k=" urlencode(getval("k""")) . "&" "?") . "nc=" time() . "\");
        </script>"
;
    }
}

This article was last updated 12th July 2025 21:35 Europe/London time based on the source file dated 7th July 2025 14:35 Europe/London time.