Commanding Chaos for Coworking, Open Source and Creative Communities

Options Element | Drupal.org

Thu, 03/10/2016 - 13:22 -- rprice

Options Element is a module that provides a better mechanism to specify select list, checkbox, and radio button options. Rather than requiring the user to use strange syntax like "key|value" in a textarea, Options Element provides a clean interface for specifying options. Developers may use $element['#type'] = 'options' in their own modules. If JavaScript is disabled, any 'options_element' will degrade to the standard textarea for specifying options.