function hook_cron_easy_hooks in Ultimate Cron 7.2
Same name and namespace in other branches
- 8.2 ultimate_cron.api.php \hook_cron_easy_hooks()
Provide easy hooks for Ultimate Cron.
Ultimate Cron has a built-in set of easy hooks:
- hook_cron_hourly().
- hook_cron_daily().
- hook_cron_nightly().
- hook_cron_weekly().
- hook_cron_monthly().
- hook_cron_yearly().
This hook makes it possible to provide custom easy hooks.
Return value
array Array of easy hook definitions.
1 invocation of hook_cron_easy_hooks()
- ultimate_cron_get_easy_hooks in ./
ultimate_cron.module - Cron easy hooks.
File
- ./
ultimate_cron.api.php, line 136 - Hooks provided by Ultimate Cron.
Code
function hook_cron_easy_hooks() {
return array(
'cron_fullmoonly' => array(
'title' => 'Run at full moon',
'scheduler' => array(
'name' => 'moonphase',
'moonphase' => array(
'phase' => 'full',
),
),
),
);
}