I know how to use hooks like
hook_node_presave. Is there also a hook to catch the deletion of a relation or the update of a relation? In the API I cannot find anything.
Maybe there is a workaround?
Relations are themselves entities, so you can use the entity hooks:
and so on, checking the
There's a full list of available entity hooks in the system.api.php file.