Resource functions
Collection functions
Search functions
IIIF
Metadata functions
User functions
System
Message functions
Plugin functions
Share functions
Tab functions
Dash functions

faces_set_node

Update the named person tag for a specific face using the provided node value.

Typically triggered when selecting a name from a dropdown, this function assigns a metadata node (e.g. representing a person) to a face record in the 'resource_face' table by updating the 'node' field.

Variable Description Data type
$resource * The resource ID to update.  int
$face * The unique reference ID of the face to update (from 'resource_face.ref'). int
$node * The node ID to assign to the face (typically corresponds to a controlled vocabulary entry). int

Return values

Returns true on successful update, false if the user doesn't have edit access to the resource.