You are here

hook_cron_post_execute.html in Ultimate Cron 6

Same filename and directory in other branches
  1. 8 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>