This function is an event handler that is called every time an entry with the specified ID is modified.