By kuba.zygmunt on
Hi there,
Today I read some chapters from 'Pro Drupal Development' book and found a fragment which is intriguing.
For hooks like insert and update, params are passed by value so the whole $node is copied. However for hook_delete a reference is used.
Can someone explain to me why passing by reference is not used in the first two (insert and update)?
Comments
That is an interesting
That is an interesting question