<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt">Thanks. It still seems "wrong" to me, but I can't argue with success.<br><div><span><br></span></div><div>&nbsp;</div><div><font color="#ff007f" face="bookman old style, new york, times, serif" size="4"><i><b>Nancy</b></i></font><br></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Lucas D Hedding &lt;lucashedding@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> support@drupal.org; Nancy Wichmann &lt;nan_wich@bellsouth.net&gt; <br> <b><span style="font-weight:
 bold;">Sent:</span></b> Thursday, September 12, 2013 2:45 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [support] Hook after node_save()<br> </font> </div> <div class="y_msg_container"><br>
<div id="yiv1271660642"><div dir="ltr">Nancy, you might try:&nbsp;<a rel="nofollow" target="_blank" href="https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_entity_update/7">https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_entity_update/7</a>. And you might have to reset the entity cache. This is untested.<div>

<br></div><div><span style="font-size:12.222222328186035px;line-height:17.98611068725586px;white-space:pre-wrap;background-color:rgb(246,246,242);">entity_get_controller('node')-&gt;resetCache(array($node-&gt;nid));</span><br>

</div></div><div class="yiv1271660642gmail_extra"><br clear="all"><div><div dir="ltr"><div><br></div>Lucas<div><a rel="nofollow" target="_blank" href="http://www.mtechinformationsolutions.com/">MTech, LLC</a></div></div></div>
<br><br><div class="yiv1271660642gmail_quote">On Thu, Sep 12, 2013 at 1:36 PM, Nancy Wichmann <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:nan_wich@bellsouth.net" target="_blank" href="mailto:nan_wich@bellsouth.net">nan_wich@bellsouth.net</a>&gt;</span> wrote:<br><blockquote class="yiv1271660642gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div style="font-size:12pt;font-family:arial, helvetica, sans-serif;"><div><span>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?<span class="yiv1271660642HOEnZb"><font color="#888888"><br>

</font></span></span></div><span class="yiv1271660642HOEnZb"><font color="#888888"><div>&nbsp;<font color="#ff007f" face="bookman old style, new york, times, serif" size="4"><font style=""><span style="font-family:arial, helvetica, sans-serif;"><br>

</span></font></font><font color="#ff007f" face="bookman old style, new york, times, serif" size="4"><i><b>Nancy</b></i></font></div></font></span></div></div><br>--<br>
[ Drupal support list | http://lists.drupal.org/ ]<br></blockquote></div><br></div>
</div><br>-- <br>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br><br></div> </div> </div> </blockquote></div>   </div></body></html>