[development] Accessing a node

Domenic Santangelo domenic at workhabit.com
Fri Aug 7 18:40:26 UTC 2009


Yes, pass what you need into $params from hook_nodeapi, before the 
drupal_mail() call. See http://api.drupal.org/api/function/drupal_mail/6 
for details.


-D


Ayen Designs wrote:
>
>
>
> During presave of a node, I am calling drupal_mail, which in turn calls
> my mail hook. In it, I need node info for the subject, but $node isn't
> passed and global $node doesn't bring it up either...how can I get at
> it? I thought of passing the information in the $parms array, but it
> looks like that array might be iterated at some point for other use.
>
>
>    
>
> -- 
>
> Ayen Designs
> 388 Bullsboro Drive #105 · Newnan, Georgia 30263
> 404-271-9734
> ayendesigns.com <http://ayendesigns.com>
>
> Ayen Designs is a tradename of the computer services division of
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/development/attachments/20090807/45a93d8f/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graphics1
Type: image/jpeg
Size: 8316 bytes
Desc: not available
URL: <http://lists.drupal.org/pipermail/development/attachments/20090807/45a93d8f/attachment-0006.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1462 bytes
Desc: not available
URL: <http://lists.drupal.org/pipermail/development/attachments/20090807/45a93d8f/attachment-0007.jpeg>


More information about the development mailing list