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

get_filter()

Description

Get filter summary details

Parameters

ColumnTypeDefaultDescription
$filterid int ID of filter (from usergroup search_filter_id or user search_filter_oid)

Return

array

Location

include/search_functions.php lines 2470 to 2490

Definition

 
function get_filter($filterid)
    {
    
// Codes for filter 'condition' column
    // 1 = ALL must apply
    // 2 = NONE must apply
    // 3 = ANY can apply
    
    
if(!is_numeric($filterid) || $filterid 1)
            {
            return 
false;    
            }
            
    
$filter  sql_query("SELECT ref, name, filter_condition FROM filter f WHERE ref={$filterid}"); 
    
    if(
count($filter) > 0)
        {
        return 
$filter[0];
        }
        
    return 
false;
    }

This article was last updated 23rd November 2020 19:35 Europe/London time based on the source file dated 19th November 2020 14:20 Europe/London time.