- Name: hook_cron
- Rationale: Many mods require to do maintenance on a regular basis, a calendar mod could delete old entries every week or a topic robot could post special topics every week.
- Placement: cron.php
- Input arguments: 1: repetition_rate (one of the constants: CRON_DAYLY CRON_WEEKLY CRON_MONTHLY CRON_YEARLY)
- Output format: void
- Output semantics: Obsolete
- Infrastructure: Used to perform maintenance tasks of a mod repeatedly. phpBB calls the hook once a day using the CRON_DAYLY constant, once a week using the CRON_WEEKLY constant etc. The mod can then perform its repeated tasks within the function. An alternative implementation would use hook_cron_dayly etc. as function names instead of the input variable.
- Related: -
[RFC|Replaced] hook_cron
[RFC|Replaced] hook_cron
Re: [RFC] hook_cron
This hook would probably be obsolete once the modular cron code is merged.
Re: [RFC] hook_cron
Oh, I guess I missed that one. Yes, agreed.
Re: [RFC|Replaced] hook_cron
Replaced by the new way crons are handled.
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"