Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello.
I want to ask developers to make empty option in select list Customizable.
I was wondered that, nobody want it, i googled for 3 days.
This is solution I use in my website. I don't know is it good or not, it might be buggy.
I changed function optionwidgets_options (401)
//from
$options = array('' => theme('optionwidgets_none', $field)) + $options;
//to
$options = isset( $options[''] )
? $options
: array('' => theme('optionwidgets_none', $field)) + $options ;
I think this is [must have] feature.
Thanks.
Comments
Comment #1
Nikolay ShapovalovComment #2
roball CreditAttribution: roball commentedYou can use the CCK Single Select module, which allows you to customize all single-value select lists on your site, both optional and required ones.