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
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.

AttachmentSize
invisimail_api_1.patch2.16 KB

#1

toemaz - May 13, 2008 - 15:42
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.

#2

Crell - June 13, 2008 - 22:30
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!

#3

Anonymous (not verified) - June 27, 2008 - 22:33
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.