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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jsaints’s picture

Version: 6.2 » 7.x-dev
FileSize
714 bytes

Just 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.

Anonymous’s picture

Priority: Normal » Critical
Status: Needs review » Reviewed & tested by the community

Critical documentation bug. Simple change.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

I've committed this patch to CVS HEAD and DRUPAL-6. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.