I've successfully created a custom user field using the code referenced here.
I'd like the field to be formatted "Hidden" per the Account Settings page. I've set the type to hidden on the field instance but it's not hiding. Any idea how to program this field as hidden in my module?