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.
Hi,
I have successfully implemented the Language Dropdown and Styled it.
But I want to add a "Please Select" as a default of the Dropdown. (Just as a text label that doesn't actually change the language).
How do I go about doing this?
Comments
Comment #1
bjmagar1906 CreditAttribution: bjmagar1906 commenteddraytop:
You can simply add following property to your form definition i.e
'#empty_option' => ' Please select',
Comment #2
draytop CreditAttribution: draytop commentedMany thanks,
Please forgive my ignorance,
Where do I do that?
I just have the Language Switcher as a Block in my header,
so everything is just selected from the options available in Configure Block.
Comment #3
draytop CreditAttribution: draytop commented