Use invisimail as an API of sorts
mikey_p - March 25, 2008 - 21:57
| Project: | Invisimail |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Sometimes in custom theming and such I could reuse some of the functions of invisimail, but because of the way they pass their variables this is somewhat of a hack. This cleans that up and makes it possible to call the function as
<?php
invisimail_ascii_encode($string, $js = FALSE, $link = FALSE, $text = NULL)
?>Where string is the email address to be encoded, $js and $link are boolean for using Javascript and making a link, and $text is an optional string to use for the link text.
With docs.
| Attachment | Size |
|---|---|
| invisimail_api_1.patch | 2.16 KB |

#1
Applied & tested. Works as advertised. I use this API function for some special cases.
Thx for the patch.
#2
Committed, both to D5 and the new D6 port. Came in helpful for #270377: Use invisimail as a CCK formatter, too. Thanks!
#3
Automatically closed -- issue fixed for two weeks with no activity.