Using module invoke with hooks that pass a parameter by reference no longer works in PHP 5.3. The result is an error, and the hook in question not being called:

warning: Parameter 1 to context_admin_noderef_create_node_nodeapi() expected to be a reference, value given in /home/jonathan/work/clients/agilivant/app/drupal/includes/module.inc on line 462.

The attached patch fixes this (see node_invoke_nodeapi for a similar fix).

CommentFileSizeAuthor
context_admin.php53_nodeapi.patch834 bytesjhedstrom

Comments

eclipsegc’s picture

Status: Needs review » Closed (fixed)

#1091588 will fix this, and is the proper fix. Will need to be ported once it lands on 7.x. The git repository in that issue is pretty close to being ready to land for 7.x.