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

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 8561 to 8578

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 
$can_view_fields;
    }

This article was last updated 26th April 2024 13:35 Europe/London time based on the source file dated 26th April 2024 11:50 Europe/London time.