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

get_resource_table_joins()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 8779 to 8823

Definition

 
function get_resource_table_joins(){

    global
    
$sort_fields,
    
$thumbs_display_fields,
    
$list_display_fields,
    
$data_joins,
    
$metadata_template_title_field,
    
$view_title_field,
    
$date_field,
    
$config_sheetlist_fields,
    
$config_sheetthumb_fields,
    
$config_sheetsingle_fields;

    
$joins=array_merge(
    
$sort_fields,
    
$thumbs_display_fields,
    
$list_display_fields,
    
$data_joins,
    
$config_sheetlist_fields,
    
$config_sheetthumb_fields,
    
$config_sheetsingle_fields,
        array(
        
$metadata_template_title_field,
        
$view_title_field,
        
$date_field)
    );
    if(isset(
$GLOBALS["related_pushed_order_by"]) && is_int_loose($GLOBALS["related_pushed_order_by"]))
        {
        
$joins[] = $GLOBALS["related_pushed_order_by"];
        }
    
$additional_joins=hook("additionaljoins");
    if (
$additional_joins) {
        
$joins array_merge($joins$additional_joins);
    }
    
$joins=array_unique($joins);
    
$n=0;
    foreach (
$joins as $join){
        if (
$join!=""){
            
$return[$n]=$join;
            
$n++;
            }
        }
    return 
$return;
    }

This article was last updated 14th July 2024 17:35 Europe/London time based on the source file dated 10th July 2024 11:30 Europe/London time.