advancedqueue_test.module in Advanced Queue 7
Hooks and workers for tests.
File
tests/advancedqueue_test.moduleView source
<?php
/**
* @file
* Hooks and workers for tests.
*/
/**
* Implements hook_advanced_queue_info().
*/
function advancedqueue_test_advanced_queue_info() {
$queues['advancedqueue_test_1'] = array(
'worker callback' => 'advancedqueue_test_worker',
);
$queues['advancedqueue_test_2'] = array(
'worker callback' => 'advancedqueue_test_worker',
);
return $queues;
}
/**
* Worker callback.
*/
function advancedqueue_test_worker($item) {
watchdog('advancedqueue_test', 'advancedqueue_test_worker(@item)', array(
'@item' => print_r($item->data, TRUE),
), WATCHDOG_INFO);
return TRUE;
}
Functions
Name | Description |
---|---|
advancedqueue_test_advanced_queue_info | Implements hook_advanced_queue_info(). |
advancedqueue_test_worker | Worker callback. |