You are here

hook_cron_post_execute.html in Ultimate Cron 8

Same filename and directory in other branches
  1. 6 help/hook_cron_post_execute.html
  2. 7 help/hook_cron_post_execute.html

File

help/hook_cron_post_execute.html
View source
<p>The hook_cron_post_execute($function, &$hook) is invoked just after running the cron function.</p>

<h3>Example</h3>
<p>Log that node_cron is done</p>
<pre>
function hook_cron_post_execute($function, &$hook) {
  if ($function == 'node_cron') {
    error_log('node_cron is done');
  }
}
</pre>