When #states
is attached to a form element that contains #markup
the following notice occurs:
Notice: Undefined index: #type in drupal_process_states() (line 583 of core/includes/common.inc).
This happens because a #markup
element does not require the #type
to be set.