You are here

function hook_mob_queue_queue_item_processing in Drush Queue Handling 7

A queue item is about to be requested from a queue for processing.

Modules may skip the queue processing by returning FALSE.

Parameters

string $queue_name: The queue name.

array $queue_info: The queue information array item as declared in the queue's hook_cron_queue_info(). @see hook_cron_queue_info()

Return value

FALSE if queue processing should be skipped.

1 invocation of hook_mob_queue_queue_item_processing()
drush_mob_queue_mob_exe_queue in ./mob_queue.drush.inc
Run the queued job.

File

./mob_queue.api.php, line 77
Hooks provided by the Drush Queue Handling module.

Code

function hook_mob_queue_queue_item_processing($queue_name, $queue_info) {
  if ($queue_name == 'do_not_process') {
    return FALSE;
  }
}