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 8565 to 8582

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 23rd July 2024 07:35 Europe/London time based on the source file dated 10th July 2024 11:30 Europe/London time.