Enable transliteration on specific pages

taldy - January 21, 2009 - 12:38
Project:Transliteration
Version:5.x-2.0
Component:Code
Category:feature request
Priority:normal
Assigned:taldy
Status:needs work
Description

Thank you for this module.

I have implemented a nice feature for your module.
Now it is possible to specify which pages do you want transliteration to happen. You can list pages or write PHP logic just like in Block visibility settings. It is very usefull for situations when you don't want transliteration to take place. This patch adds a settings page and an additional check in hook_menu().

Please, consider to include this patch into the next release.

AttachmentSize
transliteration.patch3.78 KB

#1

smk-ka - July 6, 2009 - 21:53

Marked #290349: Renamed for certain types of nod and certain types of files as a duplicate of this issue, which also suggested limiting to certain file types.

#2

smk-ka - July 6, 2009 - 22:01
Status:needs review» needs work

I am not sure if the proposed approach really works: the URLs of AJAX/AHAH-based uploads are radically different and don't tell you anything about the page they're used on. You would at least have to check the referer header field, too, to correctly identify transliteration-enabled pages.

(Hint: the Checkout module implements the somewhat tricky referer field parsing.)

 
 

Drupal is a registered trademark of Dries Buytaert.