LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-28-2009, 12:28 PM   #1
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
Angry Drupal - Module Dev conditional email action


Hi all,

I am writing a module for Drupal 6.x and I have it mostly working. Currently the user defines a tag, an email threshold interval value, configures an email action and emails when triggered by an authenticated user viewing content.

This all works, except I need to do the following now,

Conditions for the hook_mail() function

-Does the node contain the defined term? (if so email)
-Determine if the user admin (if so don't email)
-Is the user a member of the support group (if so don't email)
-Has there been an email for this user sent already within the email threshold value. (if so don't email)

I am very confused, Drupals documentation for this type is in typical Opensource fashion and their forums are not nearly as friendly as this one. I am planning on releasing this module into the community after completion.

Please help!!

Ron
 
  


Reply

Tags
development, drupal, modules, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto use one module's dev/functions in another module. urup Linux - Kernel 5 06-27-2008 06:39 AM
Perform action based on email txt plisken Linux - General 1 03-06-2007 09:49 PM
Trigger action when module is inserted (wake on lan) benjalien Debian 12 04-25-2006 01:16 AM
module not in action venkatesh111 Programming 1 03-23-2006 04:49 AM
python email module extracting headers artur Programming 3 02-06-2004 01:59 PM


All times are GMT -5. The time now is 08:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration