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

is_field_displayed()

Parameters

ColumnTypeDefaultDescription
$field

Location

include/render_functions.php lines 1496 to 1513

Definition

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

    
# Conditions under which the field is not displayed
    
return !(
        
# Field is an archive only field
        
(isset($resource["archive"]) && $resource["archive"]==&& $field["resource_type"]==999)
        
# Field does not have individual write access allowed; and does not have edit access allowed on upload
        
|| (checkperm("F*") && !checkperm("F-" $field["ref"]) && !($ref && checkperm("P" $field["ref"])))
        
# Field has write access denied directly
        
|| checkperm("F" $field["ref"])
        
# Field is hidden on upload
        
|| (($ref || $upload_review_mode) && $field["hide_when_uploading"])
        
# Other field conditions
        
|| hook('edithidefield''', array('field' => $field))
        || 
hook('edithidefield2''', array('field' => $field)));
    }

This article was last updated 30th November 2020 19:35 Europe/London time based on the source file dated 13th November 2020 15:00 Europe/London time.