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 1818 to 1822

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 1st March 2021 10:05 Europe/London time based on the source file dated 26th February 2021 11:40 Europe/London time.