Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_category_tree_fields()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 7426 to 7441

Definition

 
function get_category_tree_fields()
    {
    
# Returns a list of fields with refs matching the supplied field refs.
    
global $cattreefields_cache;
    if (
is_array($cattreefields_cache)){
        return 
$cattreefields_cache;
    } else {
        
$fields=sql_query("select name from resource_type_field where type=7 and length(name)>0 order by order_by""schema");
        
$cattreefields=array();
        foreach (
$fields as $field){
            
$cattreefields[]=$field['name'];
        }
        
$cattreefields_cache=$cattreefields;
        return 
$cattreefields;
        }
    }   

This article was last updated 8th July 2020 11:35 Europe/London time based on the source file dated 7th July 2020 16:18 Europe/London time.