You are here

function hook_advancedqueue_pre_execute in Advanced Queue 7

React to the start of a queue item processing.

Parameters

string $queue_name: Can be used to look up $queue_info and $queue as necessary.

stdClass|Entity $item: An advancedqueue_item entity, about to be processed.

File

./advancedqueue.api.php, line 70
Hooks provided by the Advanced queue module.

Code

function hook_advancedqueue_pre_execute($queue_name, $item) {
  if ($queue_name == 'advancedqueue_foobar') {
    watchdog('advancedqueue', 'Hello, world!');
  }
}