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

get_OR_fields()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 7549 to 7564

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 29th November 2020 04:05 Europe/London time based on the source file dated 27th November 2020 14:50 Europe/London time.