Strange. The code is still there, as is the defintion for EVENT_FRICTION, but I can't find ENABLE_FRICTION either. Must have gotten deleted by accident.

Phent_setfriction() only sets the automatic friction handling- it's not related to user event handling at all. The right way as you stated is to use ENABLE_FRICTION and then define an EVENT_FRICTION handler.