[RFC|Replaced] hook_cron

These event requests have either been rejected by the community or have become redundant because of code changes or other events requests.
Post Reply
gn#36
Registered User
Posts: 8
Joined: Mon Aug 30, 2010 9:09 pm

[RFC|Replaced] hook_cron

Post by gn#36 »

  • 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: -

igorw
Registered User
Posts: 500
Joined: Thu Jan 04, 2007 11:47 pm

Re: [RFC] hook_cron

Post by igorw »

This hook would probably be obsolete once the modular cron code is merged.

gn#36
Registered User
Posts: 8
Joined: Mon Aug 30, 2010 9:09 pm

Re: [RFC] hook_cron

Post by gn#36 »

Oh, I guess I missed that one. Yes, agreed.

User avatar
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: [RFC|Replaced] hook_cron

Post by MichaelC »

Replaced by the new way crons are handled.
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

Post Reply