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

add_saved_search()

Description

Add a saved search to a collection

Parameters

ColumnTypeDefaultDescription
$collection integer

Return

void

Location

include/collections_functions.php lines 1736 to 1740

Definition

 
function add_saved_search($collection)
    {
    
sql_query("insert into collection_savedsearch(collection,search,restypes,archive) values ('" 
        
escape_check($collection) . "','" getvalescaped("addsearch","") . "','" getvalescaped("restypes","") . "','" getvalescaped("archive","") . "')");
    }

This article was last updated 2nd December 2020 00:35 Europe/London time based on the source file dated 1st December 2020 11:10 Europe/London time.