hook_cron()

drupal_cron_run()

Walt Haas's picture

Perform periodic system maintenance jobs. If a hook_cron() implementation throws an exception, watchdog() is called to log an error message, execution continues and TRUE is returned. If drupal_cron_run() was called from system_run_cron_submit() by pressing the "Run cron" button the message "Cron run successfully" will be displayed in spite of any thrown exceptions.

Subscribe to RSS - hook_cron()