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.
(Tested also in 6.x-2.x-dev)
Original values of this module are Punctuation->"Hyphen-to be replace by separator"
When clicked "Reset to Defaults", settings are changed to "Hyphen-Remove"
So when you go to save the settings this message is displayed:
You have configured the Hyphen - to be the separator and to be removed when encountered in strings. This can cause problems with your patterns and especially with the catpath and termpath patterns. You should probably set the action for Hyphen - to be "replace by separator".
Comment | File | Size | Author |
---|---|---|---|
#4 | 374396-punctuation-defaults-D6.patch | 1.13 KB | Dave Reid |
#3 | 374396-punctuation-defaults-D6.patch | 1.13 KB | Dave Reid |
#2 | 374396-sane_defaults_for_punctuation-2-d6.patch | 1.45 KB | Freso |
Comments
Comment #1
gregglesComment #2
Freso CreditAttribution: Freso commentedThe attached patch checks what is currently being used as a separator, and defaults that to
PATHAUTO_PUNCTUATION_REPLACE
. This might lead to some quirks where you're resetting the settings, and then changing the separator - or having had a different separator before resetting. It's also completely untested. Please provide feedback. :)Comment #3
Dave ReidPatch against 6.x-1.x as well.
Comment #4
Dave ReidWithout janky spacing this time.
Comment #5
Dave ReidTested on both 6.x-2.x and 6.x-1.x. I don't think this is necessary with 7.x-1.x since there is no more 'Reset to defaults' with system_settings_form().
http://drupal.org/cvs?commit=331352
http://drupal.org/cvs?commit=331354