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.
When we use drush integration to create subtheme with '_' or '-' in name (eg mother_ship) we get files with 'mother-ship' string in every place where machine name is expected:
- mother-ship.info file
- function mother-ship_some_hook()
- etc.
It's obviously wrong, and it's because drupal_clean_css_identifier was used for cleaning the name.
I've noticed that in this issue doesn't exists in Zen. I've copied their solution for names, and I worked as expected.
Patch on the way.
Comment | File | Size | Author |
---|---|---|---|
#1 | mothership-fixed_drush_integration_for_names_with_underscore-1706398.patch | 1.2 KB | marcin.wosinek |
Comments
Comment #1
marcin.wosinek CreditAttribution: marcin.wosinek commentedpatch
Comment #2
realityloopfixed in 3.x