* Add preDeleteNode hook.