Hi!
Sometimes it's useful to open links in taxonomy_dhtml in new window. I had not found a solution, so I modified the module code.
I've added new setting to dhtml module, which controls in which window to open a page. I hope this patch will be useful not only for me, so I publish it here.
Because this is my first working expirience with Drupal code, it can be buggy. I ask Drupal gurus to review it and help to improve it to production state.
Thank you.
P.S. Patch was made by WinMerge in Unified format. If you need another format - please let me know.
| Comment | File | Size | Author |
|---|---|---|---|
| taxonomy_dhtml.module_1.diff | 3.12 KB | el777 |
Comments
Comment #1
moshe weitzman commenteddrupal does not open new windows anywhere, so i won't commit this. others are welcome to use it of course. thanks for posting.
Comment #2
el777 commentedHi, Moshe!
My code doesn't enforce anybody to open new windows. The idea is to add a new setting to taxonomy_dhtml module, so any person can easily decide for himself (herself) whether or not use new windows. All that user need - to set/clear a checkbox.
If this behavior is a Drupal policy, I agree. Thank you for you time!