Presenting a Drupal form as a table

This is more difficult than it should be. Once you figure it out, though, it's copy-pasteable.