Download & Extend

Update user_mail() to drupal_mail()

Project:Actions
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

Status:needs review» fixed

Fixed. Thanks.

#2

Status:fixed» 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.txt 925 bytes

#3

Status:needs review» fixed

Thanks, drewish.

#4

Status:fixed» closed (fixed)
nobody click here