tags:

views:

80

answers:

3

Does anyone know off hand what order Drupal executes it's _cron hooks? It is important for a certain custom module I am developing and can't seem to find any documentation on it on the web. Maybe I'm searching for the wrong thing!

Any help? Jeff

+1  A: 

You can inspect and adjust the cron execution orders with Supercron module.

http://drupal.org/project/supercron

Kevin
+5  A: 

Drupal executes all of its hooks in the order based off of module weight. Module weight defaults to 0, and the secondary ordering is alphabetical by module name:

http://api.drupal.org/api/function/module_list/6

jhedstrom
UPDATE system SET weight='N' WHERE name='my_module'. It's a common practice for modules that need later execution to place that in their hook_install(), but you can manually do that just as easily.
Grayside
A: 

Hooks execution is determinate from the weight of the module implementing them; the weightier module will be executed for last.

kiamlaluno