Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_OR_fields()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 7077 to 7092

Definition

 
function get_OR_fields()
    {
    
# Returns a list of fields that should retain semicolon separation of keywords in a search string
    
global $orfields_cache;
    if (
is_array($orfields_cache)){
        return 
$orfields_cache;
    } else {
        
$fields=sql_query("select name from resource_type_field where type=7 or type=2 or type=3 and length(name)>0 order by order_by""schema");
        
$orfields=array();
        foreach (
$fields as $field){
            
$orfields[]=$field['name'];
        }
        
$orfields_cache=$orfields;
        return 
$orfields;
        }
    }

This article was last updated 10th July 2020 00:35 Europe/London time based on the source file dated 8th July 2020 11:40 Europe/London time.