Resource functions
- get_resource_field_data
- create_resource
- delete_resource
- copy_resource
- get_resource_log
- update_resource_type
- get_resource_path
- get_resource_data
- get_alternative_files
- get_resource_types
- add_alternative_file
- delete_alternative_file
- upload_file
- upload_file_by_url
- upload_multipart
- get_related_resources
- resource_log_last_rows
- replace_resource_file
- get_resource_all_image_sizes
- put_resource_data
- update_related_resource
- relate_all_resources
- get_edit_access
- get_resource_access
Collection functions
Search functions
IIIF
Metadata functions
User functions
System
Message functions
Plugin functions
update_field
Set the value of a metadata field.
Variable | Description | Data type | Default value |
---|---|---|---|
$resource * | The ID of the resource. | integer | |
$field * | The numeric ID or shortname of the field. | integer | |
$value * | The value to set the field to. Can be a comma separated list for fixed list option fields. Use double quotes to enclose strings and use backslash as the escape character. NOTE If passing option (node) IDs ensure that the next parameter $nodevalues is set to TRUE |
string | |
$nodevalues | Set to TRUE if passing in values as a comma separated list of field option IDs. The available nodes can be retrieved via get_field_options(). | boolean | false |
Return values
The operation success (true/false).