Example: Cron
Same name in other branches
- 3.x modules/cron_example/cron_example.module \cron_example
- 8.x-1.x cron_example/cron_example.module \cron_example
- 4.0.x modules/cron_example/cron_example.module \cron_example
Example using Cron API, including hook_cron() and hook_cron_queue_info().
This example is part of the Examples for Developers Project which you can download and experiment with at http://drupal.org/project/examples
Parent topics
File
-
cron_example/
cron_example.module, line 8
Functions
Title Sort descending | File name | Summary |
---|---|---|
cron_example_add_jobs_to_queue | cron_example/ |
Submit function used to add the items to the queue. |
cron_example_cron | cron_example/ |
Implements hook_cron(). |
cron_example_cron_queue_info | cron_example/ |
Implements hook_cron_queue_info(). |
cron_example_form | cron_example/ |
The form to provide a link to cron.php. |
cron_example_form_cron_run_submit | cron_example/ |
Allow user to directly execute cron, optionally forcing it. |
cron_example_menu | cron_example/ |
Implements hook_menu(). |
cron_example_queue_1_worker | cron_example/ |
Simple worker for our queues. |
cron_example_queue_2_worker | cron_example/ |
Simple worker for our queues. |
cron_example_queue_report_work | cron_example/ |
Simple reporter for the workers. |
Classes
Title Sort descending | File name | Summary |
---|---|---|
CronExampleTestCase | cron_example/ |
cron_example test class |