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.
While looking over the code I've noticed that there is some boilerplate code for generating unique html ids. There is drupal_html_id()
that does exactly that. We should use it.
Comment | File | Size | Author |
---|---|---|---|
#1 | ace_editor-use-drupal_html_id-2468489-1.patch | 767 bytes | torotil |
Comments
Comment #1
torotil CreditAttribution: torotil at more onion commentedHere is a patch doing exactly that.
Also you might want to replace all the tabs with spaces to conform to drupal coding standards. I'm happy to provide a patch for that too.
Comment #3
interdruper CreditAttribution: interdruper commented