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.
In Drupal 8 all collapsible fieldsets have been replaced with HTML5 details elements:
$form['advanced'] = array(
'#type' => 'details',
'#title' => t('Advanced settings'),
'#description' => t('Lorem ipsum.'),
'#open' => TRUE, // Controls the HTML5 'open' attribute. Defaults to FALSE.
);
There's also a Number class for numbered form fields: https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!Nu...
Comment | File | Size | Author |
---|---|---|---|
#2 | smtp-ui_improvements-2671070-2.patch | 2.22 KB | mpp |
|
Comments
Comment #2
mpp CreditAttribution: mpp as a volunteer and at AmeXio commentedUpdated all fieldsets to settings elements and changed the port textfield into a number field.
Comment #3
estoyausenteGreat!
Patch run correctly.
Comment #5
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commented