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

get_filter_rule()

Description

Get filter rule

Parameters

ColumnTypeDefaultDescription
$ruleid int - ID of filter rule

Return

array

Location

include/search_functions.php lines 2540 to 2548

Definition

 
function get_filter_rule($ruleid)
    {    
    
$rule_data sql_query("SELECT fr.ref, fr.rule_condition, group_concat(frn.node) AS nodes FROM filter_rule fr LEFT JOIN filter_rule_node frn ON frn.filter_rule=fr.ref WHERE fr.ref='" escape_check($ruleid) . "'"); 
    if(
count($rule_data) > 0)
        {
        return 
$rule_data[0];
        }
    return 
false;
    }

This article was last updated 29th November 2020 05:05 Europe/London time based on the source file dated 26th November 2020 14:30 Europe/London time.