canSeeAnnotationsFields()

Description

Helper function to determine if annotations are to be displayed.

Parameters

ColumnTypeDefaultDescription
array { :
$annotate_fields
$k;

Return

array Array of annotation fields that can be viewed.

Location

include/resource_functions.php lines 7981 to 7995

Definition

 
function canSeeAnnotationsFields(): array
{
    global 
$annotate_enabled$annotate_fields$k;

    
$can_view_fields = array();
    if (
$annotate_enabled && $k == "") {
        foreach (
$annotate_fields as $annotate_field) {
            if (
metadata_field_view_access($annotate_field)) {
                
$can_view_fields[] = $annotate_field;
            }
        }
    }

    return 
array_unique($can_view_fieldsSORT_NUMERIC);
}

This article was last updated 16th June 2025 21:35 Europe/London time based on the source file dated 5th June 2025 10:55 Europe/London time.