Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

get_resource_type_field_columns()

Description

Get the definitions for resource_type_field columns, including properties and display configurations.

Parameters

This function accepts no parameters.

Return

array An associative array of resource type field column definitions.

Location

include/config_functions.php lines 1898 to 1949

Definition

 
function get_resource_type_field_columns()
    {
    global 
$lang;

    
$resource_type_field_column_definitions execution_lockout_remove_resource_type_field_props([
        
'active'                   => [$lang['property-field_active'],'',1,1],
        
'global'                   => [$lang['property-resource_type'],'',1,0],
        
'title'                    => [$lang['property-title'],'',0,1],
        
'type'                     => [$lang['property-field_type'],'',0,1],
        
'linked_data_field'        => [$lang['property-field_raw_edtf'],'',0,1],
        
'name'                     => [$lang['property-shorthand_name'],$lang['information-shorthand_name'],0,1],
        
'required'                 => [$lang['property-required'],'',1,1],
        
'order_by'                 => [$lang['property-order_by'],'',0,0],
        
'keywords_index'           => [$lang['property-index_this_field'],$lang["information_index_warning"] . " " $lang['information-if_you_enable_indexing_below_and_the_field_already_contains_data-you_will_need_to_reindex_this_field'],1,1],
        
'display_field'            => [$lang['property-display_field'],'',1,1],
        
'full_width'               => [$lang['property-field_full_width'],'',1,1],
        
'advanced_search'          => [$lang['property-enable_advanced_search'],'',1,1],
        
'simple_search'            => [$lang['property-enable_simple_search'],'',1,1],        
        
'browse_bar'               => [$lang['field_show_in_browse_bar'],'',1,1],
        
'read_only'                => [$lang['property-read_only_field'], ''11],
        
'exiftool_field'           => [$lang['property-exiftool_field'],'',0,1],
        
'fits_field'               => [$lang['property-fits_field'], $lang['information-fits_field'], 01],
        
'personal_data'            => [$lang['property-personal_data'],'',1,1],
        
'hide_when_uploading'      => [$lang['property-hide_when_uploading'],'',1,1],
        
'hide_when_restricted'     => [$lang['property-hide_when_restricted'],'',1,1],
        
'help_text'                => [$lang['property-help_text'],'',2,1],
        
'tooltip_text'             => [$lang['property-tooltip_text'],$lang['information-tooltip_text'],2,1],
        
'tab'                      => [$lang['property-tab_name'], ''00],
        
'partial_index'            => [$lang['property-enable_partial_indexing'],$lang['information-enable_partial_indexing'],1,1],
        
'iptc_equiv'               => [$lang['property-iptc_equiv'],'',0,1],                                  
        
'display_template'         => [$lang['property-display_template'],'',2,1],
        
'display_condition'        => [$lang['property-display_condition'],$lang['information-display_condition'],2,1],
        
'regexp_filter'            => [$lang['property-regexp_filter'],$lang['information-regexp_filter'],2,1],
        
'smart_theme_name'         => [$lang['property-smart_theme_name'],'',0,1],
        
'display_as_dropdown'      => [$lang['property-display_as_dropdown'],$lang['information-display_as_dropdown'],1,1],
        
'external_user_access'     => [$lang['property-external_user_access'],'',1,1],
        
'omit_when_copying'        => [$lang['property-omit_when_copying'],'',1,1],
        
'include_in_csv_export'    => [$lang['property-include_in_csv_export'],'',1,1],
        
'autocomplete_macro'       => [$lang['property-autocomplete_macro'],'',2,1],
        
'exiftool_filter'          => [$lang['property-exiftool_filter'],'',2,1],
        
'value_filter'             => [$lang['property-value_filter'],'',2,1],
        
'onchange_macro'           => [$lang['property-onchange_macro'],$lang['information-onchange_macro'],2,1],
    ]);

    
$modify_resource_type_field_definitions=hook("modifyresourcetypefieldcolumns","",array($resource_type_field_column_definitions));
    if(
$modify_resource_type_field_definitions!='')
        {
        
$resource_type_field_column_definitions=$modify_resource_type_field_definitions;
        }

    return 
$resource_type_field_column_definitions;
    }

This article was last updated 15th December 2024 20:05 Europe/London time based on the source file dated 11th December 2024 15:55 Europe/London time.