Collections functions
Encryption functions
General functions
Theme permission 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 2483 to 2491

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 10th July 2020 01:35 Europe/London time based on the source file dated 7th July 2020 15:22 Europe/London time.