[support] Hook after node_save()

Lucas D Hedding lucashedding at gmail.com
Thu Sep 12 18:45:29 UTC 2013


Nancy, you might try:
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_entity_update/7.
And you might have to reset the entity cache. This is untested.

entity_get_controller('node')->resetCache(array($node->nid));


Lucas
MTech, LLC <http://www.mtechinformationsolutions.com>


On Thu, Sep 12, 2013 at 1:36 PM, Nancy Wichmann <nan_wich at bellsouth.net>wrote:

> just to prove that my code would work, I put it in hook_node_update().
> Unfortunately, that hook runs before node_save() completes, so the updated
> data is not written to the DB yet. I can't find any hook that runs after
> node_save() is complete. Does anyone have any ideas?
>
> *Nancy*
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20130912/f7e3a812/attachment.html 


More information about the support mailing list