put send button on node view page?

jglynn - September 23, 2009 - 19:37
Project:Simplenews
Version:6.x-1.0-rc6
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

I'm trying to figure out a way to put "Send this node as Test email" and "Send this node as a newsletter" buttons on the node view page, rather than on the edit page. I think this would be simpler for my clients to understand.

I'm thinking I could do it by calling a php file with ajax when the button is clicked, to either fire the simplenews_send_node($node) function or to trigger a simplenews action. However, I'm a bit lost how to do either of these. Any suggestion on which way would be best and how to proceed?

thanks, hope you can help me a bit!

J

#1

Sutharsan - September 23, 2009 - 22:01

In the simlenews action module you will find the function calls required to send a newsletter. Perhaps that is of any help.

#2

jglynn - September 24, 2009 - 00:44

Thanks, I'll check it out. Now I just need to figure out how to call those functions with ajax...

 
 

Drupal is a registered trademark of Dries Buytaert.