Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
http://api.drupal.org/?q=api/function/drupal_mail/6
function example_notify is sending a key to example_mail here, where key = 'notify'
But example_mail sends mail after receiving a key = 'notice'
In this example, mail will never be sent.
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal_mail_documentation_correction.patch | 714 bytes | jsaints |
drupal6_mail.patch | 697 bytes | meba | |
Comments
Comment #1
jsaints CreditAttribution: jsaints commentedJust doing some "farming" here. I can confirm this documentation bug.
I rerolled the patch for HEAD (D7). Seems like a simple fix that will help others avoid confusion when they follow the example in the documentation.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedCritical documentation bug. Simple change.
Comment #3
Dries CreditAttribution: Dries commentedI've committed this patch to CVS HEAD and DRUPAL-6. Thanks!
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.