Closed (fixed)
Project:
Hook Post Action
Version:
7.x-1.0-beta2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2016 at 11:01 UTC
Updated:
14 Nov 2018 at 10:09 UTC
Jump to comment: Most recent
Comments
Comment #2
sinasalek commentedYou expect _postinsert to be called only when the node is inserted. but it's called on all node actions (insert, update, delete) because due to drupal core limitations it's not possible to distinguish between these actions.
Comment #3
jusfeel commentedI tried to produce this situation but I can't.
So I add a watchdog under postinsert and postupdate and I deleted something. But I can't capture the watchdog.
Is my test valid?
Comment #4
jmuzz commentedYeah I don't get this either... Is this problem unique to the Drupal 8 version? The intro page could specify that if it's the case.
I activated the module and the example module in Drupal 7. When I deleted a node only the delete hook was called. The other hooks are not being called except for when they're supposed to be.
Comment #5
sinasalek commentedNo it actually originates from Drupal 7.
May the behavior of Drupal is changed. If non of you is experiencing the problem perhaps it is fixed and there is no need for the warning
Comment #7
sinasalek commentedI removed the warning as per this issue