Lots of projects use nearly identical code to generate a machine name automatically based on a human-readable name:
Mailhandler: http://drupalcode.org/project/mailhandler.git/blob/refs/heads/6.x-2.x:/m...
Feeds: http://drupalcode.org/project/feeds.git/blob/refs/heads/6.x-1.x:/feeds_u...
Features: http://drupalcode.org/project/features.git/blob/refs/heads/6.x-1.x:/feat...
Hosting Platform Pathauto: http://drupalcode.org/project/hosting_platform_pathauto.git/blob/refs/he...
... and many more, I'm sure

This is really annoying, since minor fixes to the code have to be replicated many times, as with this recent fix in all of the modules:
Original issue:
#946068: The machine name isn't updating correctly when the user selects a previous input value
'Ripple' issues:
#1143588: Machine name not automatically generated in some cases (feeds_ui.js)
#1376466: Path not generated when copy/paste is used
#1376460: Machine name for mailbox not generated when copy/paste is used
#1324238: Not all views exposed forms auto-submit correctly (was: Clean up and improve auto-submit.js0

To avoid all of this duplicated effort, would it be possible to add this auto-generate script to ctools, so every dependent project doesn't have to maintain its own version?

Comments

merlinofchaos’s picture

Since Drupal 7 has one in core, I'm not sure I see a need to add one in Drupal 6. Though maybe backporting the Drupal 7 one and putting it in CTools might make some sense.