Today I needed to change the format of a taxonomy term exposed filter to display the vocabulary hierarchy in groups instead of the normal '-Item', '--Sub-Item' format (see the before and after photos below).
Before
|
After
|
The Code
To accomplish this I needed to use hook_form_alter() to change the options list.