You are here

function cron_example_queue_1_worker in Examples for Developers 7

Simple worker for our queues.

Parameters

object $item: Any object to be worked on.

Related topics

1 string reference to 'cron_example_queue_1_worker'
cron_example_cron_queue_info in cron_example/cron_example.module
Implements hook_cron_queue_info().

File

cron_example/cron_example.module, line 221
Demonstrates use of the Cron API in Drupal - hook_cron()

Code

function cron_example_queue_1_worker($item) {
  cron_example_queue_report_work(1, $item);
}