#options supports #weight in each option, to allow for ordering the options in a desirable manner. Similarly, it should support the #disabled property. If that were supported, it would be possible to mark specific options as disabled.

A (super simple) patch that fixes this is attached.

A screenshot with a use case is attached.

This patch was sponsored by the Belgian Drupal company The CareCompany, while working on a project for them.

Comments

dave reid’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS. Thanks Wim!
http://drupal.org/cvs?commit=345848

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.