When a user logs out on my site, I'm getting the following warning message in my site log entries (/admin/reports/dblog):

Warning: Missing argument 2 for rules_user_logout() in rules_user_logout() (line 141 of /Users/benkaplan/git/drupal/sites/all/modules/rules/rules/modules/events.inc).

Any ideas on how to fix?

Thanks,
Ben

CommentFileSizeAuthor
#1 887304-user-logout.patch408 bytesklausi

Comments

klausi’s picture

Component: Rules Core » Rules Engine
Status: Active » Needs review
StatusFileSize
new408 bytes

easy fix, hook_user_logout() receives only $account as argument: http://api.drupal.org/api/function/hook_user_logout/7

BenK’s picture

Status: Needs review » Reviewed & tested by the community

The patch in #1 got rid of the warning message for me. Thanks! This is ready to be committed.

--Ben

fago’s picture

Status: Reviewed & tested by the community » Fixed

thanks, committed.

Status: Fixed » Closed (fixed)

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