- 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: -
These event requests have either been rejected by the community or have become redundant because of code changes or other events requests.
4 posts • Page 1 of 1
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"