He connected a dimmer switch that you would normally use for a lamp. You can buy these at the hardware store.
I have some on my lamps where the lamp plugs into the switch and the switch plugs into the wall.
I am sure someone will remember the post for you.