You are here

hook_hourly.html in Ultimate Cron 6

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

File

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

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