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

is_field_displayed()

Parameters

ColumnTypeDefaultDescription
$field

Location

include/render_functions.php lines 1753 to 1769

Definition

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

    
# Conditions under which the field is not displayed
    
return !(
        (
$field['active']==0)
        
# 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 19th March 2024 08:35 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.