Improved forward_link
benoit.borrel - November 3, 2009 - 12:15
| Project: | Forward |
| Version: | 6.x-1.9 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi,
The patch enclosed does 2 things in forward_link function:
1. Set the $links['forward_links']['attributes'] with the 'forward_page_title' variable instead of t('Forward this page to a friend').
2. Improve the link generation by initializing $links['forward_links']['query'] as an array instead of a simple string in order to ease post-processing. For example at template layer, one could use array functions (like array_merge in my situation) to alter the query part w/o bothering with '&' between URL parameters.
Thanks
| Attachment | Size |
|---|---|
| forward_link.patch | 1.16 KB |

#1
Fixed, will be in the next release (later today).
#2
Automatically closed -- issue fixed for 2 weeks with no activity.