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

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.

CommentFileSizeAuthor
invisimail_api_1.patch2.16 KBmikey_p

Comments

toemaz’s picture

Status: Needs review » Reviewed & tested by the community

Applied & tested. Works as advertised. I use this API function for some special cases.

Thx for the patch.

Crell’s picture

Status: Reviewed & tested by the community » Fixed

Committed, both to D5 and the new D6 port. Came in helpful for #270377: Use invisimail as a CCK formatter, too. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.