You are here

hook_yearly.html in Ultimate Cron 6

Same filename and directory in other branches
  1. 8 help/hook_yearly.html
  2. 7 help/hook_yearly.html

File

help/hook_yearly.html
View source
If you just want a cron job that runs once a year by default, you can use hook_yearly().

<h3>Example</h3>
<pre>
// Easy-hook, uses rule: 0 0 1 1 *
function mymodule_yearly() {
  // Do some stuff
}
</pre>

P.S.: It's okay to laugh. The use case for this hook is very likely non-existent.