Created
December 7, 2012 15:08
-
-
Save balsama/4233836 to your computer and use it in GitHub Desktop.
Drupal Pathauto Curly Quotes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pathauto.inc b/pathauto.inc | |
index 42290ca..fcd0276 100644 | |
--- a/pathauto.inc | |
+++ b/pathauto.inc | |
@@ -677,6 +677,10 @@ function pathauto_punctuation_chars() { | |
$punctuation['greater_than'] = array('value' => '>', 'name' => t('Greater-than sign')); | |
$punctuation['slash'] = array('value' => '/', 'name' => t('Slash')); | |
$punctuation['back_slash'] = array('value' => '\\', 'name' => t('Backslash')); | |
+ $punctuation['double_curly_left'] = array('value' => '“', 'name' => t('Double curly left')); | |
+ $punctuation['double_curly_right'] = array('value' => '”', 'name' => t('Double curly right')); | |
+ $punctuation['single_curly_left'] = array('value' => '‘', 'name' => t('Single curly left')); | |
+ $punctuation['single_curly_right'] = array('value' => '’', 'name' => t('Single curly right')); | |
// Allow modules to alter the punctuation list and cache the result. | |
drupal_alter('pathauto_punctuation_chars', $punctuation); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adds support for the following characters:
Left Double Quotation Mark “ “
Right Double Quotation Mark ” ”
Left Single Quotation Mark ‘ ‘
Right Single Quotation Mark ’ ’