[support] Hook after node_save()

Nancy Wichmann nan_wich at bellsouth.net
Thu Sep 12 18:54:29 UTC 2013


Thanks. It still seems "wrong" to me, but I can't argue with success.


 
Nancy




>________________________________
> From: Lucas D Hedding <lucashedding at gmail.com>
>To: support at drupal.org; Nancy Wichmann <nan_wich at bellsouth.net> 
>Sent: Thursday, September 12, 2013 2:45 PM
>Subject: Re: [support] Hook after node_save()
> 
>
>
>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
>
>
>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/ ]
>>
>
>-- 
>[ Drupal support list | http://lists.drupal.org/ ]
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20130912/fbda1348/attachment.html 


More information about the support mailing list