Example: Cron

Same name in other branches
  1. 7.x-1.x cron_example/cron_example.module \cron_example
  2. 4.0.x modules/cron_example/cron_example.module \cron_example

Example using Cron API, including hook_cron() and @QueueWorker plugins

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

modules/cron_example/cron_example.module, line 8

Functions

Title Sort descending File name Summary
cron_example_cron modules/cron_example/cron_example.module Implements hook_cron().

Classes

Title Sort descending File name Summary
CronExampleTest modules/cron_example/tests/src/Functional/CronExampleTest.php Test the functionality for the Cron Example.