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 1751 to 1767

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 27th April 2024 19:35 Europe/London time based on the source file dated 25th April 2024 16:15 Europe/London time.