Hi,

i reviewd cron control today. Here is a complete new appoch for managing cronjobs in Drupal 7. Drupal 7 provides hook_implements_alter(). Its possible to rewrite the order of hooks or unset certain implementions completely.

- Modifying module weight in hook_install is not necessary.
- Own implemention of hook_cron is not necessary, everything is done in hook_implements_alter().
- Disabled implementions are never called.

Patch is attached.

Comments

webflo’s picture

Here is an new patch. DrupalQueue is handled by drupal_cron_run() too.

mkalkbrenner’s picture

Status: Active » Needs review

I haven't reviewed your patch in detail yet. But your approach sounds promising. I hope to find the time to review and test your patch soon.

mkalkbrenner’s picture

Status: Needs review » Fixed

I switched to hook_implements_alter() as recommended. But in detail the patch looks different. (see git)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.