Skip to contents

[Experimental]

Retrieves settings for a single collection from the database. Returns default values if no settings exist for the collection.

Usage

get_collection_settings(collection_uuid, cn = NULL)

Arguments

collection_uuid

Character. Collection UUID (required).

cn

Database connection. If NULL, creates and closes connection. Default: NULL.

Value

List with collection settings:

collection_uuid

The collection UUID

status

'wip' or 'complete'

visibility_override

NA, 'visible', or 'hidden'

extended_settings

List of additional settings

created_at

Timestamp of record creation

updated_at

Timestamp of last update

Details

Queries settings.collection_settings table. If no record exists for the collection, returns a list with default values (status = "wip", no visibility override, empty extended_settings).