Update user_mail() to drupal_mail()

drewish - January 19, 2007 - 00:36
Project:Actions
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I got the following error:

Fatal error: Call to undefined function user_mail() in sites/all/modules/actions/actions.inc on line 334

It's due to the function name changing from user_mail() to drupal_mail(). The attached patch should take care of it.

AttachmentSize
actions_patch.txt922 bytes

#1

jvandyk - January 19, 2007 - 02:26
Status:patch (code needs review)» fixed

Fixed. Thanks.

#2

drewish - January 19, 2007 - 17:10
Status:fixed» patch (code needs review)

Not quite fixed. There's a new parameter, from the link:

The new $mailkey is used to identify the email for hook_mail_alter (see below).

Please look at the change in the patch.

AttachmentSize
actions_patch_0.txt925 bytes

#3

jvandyk - January 19, 2007 - 17:17
Status:patch (code needs review)» fixed

Thanks, drewish.

#4

Anonymous - February 2, 2007 - 17:17
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.