Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

is_field_displayed()

Parameters

ColumnTypeDefaultDescription
$field

Location

include/render_functions.php lines 1462 to 1476

Definition

 
function is_field_displayed($field)
    {
    global 
$ref$resource$upload_review_mode;

    
# Field is an archive only field
    
return !(($resource["archive"]==&& $field["resource_type"]==999)
        
# Field has write access denied
        
|| (checkperm("F*") && !checkperm("F-" $field["ref"])
        && !(
$ref && checkperm("P" $field["ref"])))
        || 
checkperm("F" $field["ref"])
        
# Upload only field
        
|| (($ref || $upload_review_mode) && $field["hide_when_uploading"] && $field["required"]==0)
        || 
hook('edithidefield''', array('field' => $field))
        || 
hook('edithidefield2''', array('field' => $field)));
    }

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