Edit hook relate with node.

Port to d7.