You are here

hook_weekly.html in Ultimate Cron 7

Same filename and directory in other branches
  1. 8 help/hook_weekly.html
  2. 6 help/hook_weekly.html

File

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

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