The locking works because triggering the button microswitch (i.e. CDL switch) makes the BECM thinks you're inside the car & want all the doors to lock. Conversely when unlocking using the button, the mod makes the BECM think you want to unlock that door.
To make it work properly the mod would...