Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 05-28-2009, 01:28 PM   #1
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!!



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 07:39 AM
Perform action based on email txt plisken Linux - General 1 03-06-2007 10:49 PM
Trigger action when module is inserted (wake on lan) benjalien Debian 12 04-25-2006 02:16 AM
module not in action venkatesh111 Programming 1 03-23-2006 05:49 AM
python email module extracting headers artur Programming 3 02-06-2004 02:59 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:04 AM.

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