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.
The Form API element 'machine_name' is better suited for Widget Set Names than a generic 'textfield' form item. The benefits to switching this over are:
- Better Form API compliance.
- Free form element validation and free UI messaging/candy. (no more custom UI and form item validation subroutine and less error prone)