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.

CommentFileSizeAuthor
taxonomy_dhtml.module_1.diff3.12 KBel777

Comments

moshe weitzman’s picture

Status: Needs review » Closed (won't fix)

drupal does not open new windows anywhere, so i won't commit this. others are welcome to use it of course. thanks for posting.

el777’s picture

Status: Closed (won't fix) » Closed (fixed)

Hi, 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!