When invoking hook_user implementations, Bakery 6.x-2.x-dev causes a bunch of PHP warnings such as:
"Parameter 2 to pathauto_user() expected to be a reference, value given in /home/web/wwwprod/html/includes/module.inc on line 497." Hook_user implementations expect parameters 2 and 3 to be references.

In bakery.module on line 1497, in the call to module_invoke_all, change NULL to $null=NULL
Old:module_invoke_all('user', 'logout', NULL, $user)
New:module_invoke_all('user', 'logout', $null = NULL, $user)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greggles’s picture

Thanks for your bug report and for helping make this a better module. Could you provide this as a patch?

Sborsody’s picture

Status: Active » Needs review
FileSize
408 bytes

OK, if you insist.

neclimdul’s picture

Seems user_module_invoke might actually be the right way to be calling this.

coltrane’s picture

Status: Needs review » Fixed

Committed modified version of #3 http://drupalcode.org/project/bakery.git/commit/fef379d

I don't think D7 needs user_module_invoke() because according to http://api.drupal.org/api/drupal/modules!user!user.module/function/user_... 'logout' isn't a valid choice.

neclimdul’s picture

Seems reasonable. The 7.x does not have the same code that was causing this warning so it seems that's already been dealt with.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Adding corrected code