Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Even though the implementation of hook_nodeapi()
in fieldgroup only performs an action for $op == 'view'
, which uses the last two arguments ($teaser
and $page
), the function may be called for any other $op
, that may or may not use said last arguments.
This causes a PHP error whenever a third party module calls module_invoke_all('nodeapi', $node, $op);
without the last two parameters.
The attached patch adds the proper default arguments, as per the Drupal API.
Comment | File | Size | Author |
---|---|---|---|
#1 | fieldgroup-nodeapi.patch | 474 bytes | vkareh |
Comments
Comment #1
vkareh CreditAttribution: vkareh commentedPatch did not go through... ?
Comment #2
KarenS CreditAttribution: KarenS commentedYep. Thanks!