node_invoke() is apparently never called with more than 2 parameters: $node and $hook, at least in core.

It should probably be reduced to these 2 parameters: this looks like a remnant from older Drupal versions.

CommentFileSizeAuthor
#1 node_1036080.patch1.05 KBfgm

Comments

fgm’s picture

Status: Active » Needs review
StatusFileSize
new1.05 KB

Sending to test bot to make sure.

jacob.embree’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

The additional parameters are available for legacy reasons. One of them is used, for instance, by Ctools (http://www.drupalcontrib.org/api/drupal/contributions%21ctools%21plugins...).

This would be an incompatible API change for Drupal 7.
Drupal 8 removed node_invoke() (https://www.drupal.org/node/2029519).