function drush_queue_validate

6.x queue.drush.inc drush_queue_validate($command)
5.x queue.drush.inc drush_queue_validate($command)

Validation for Drupal 6 to ensure the drupal_queue module is enabled.

Parameters

$command: The command being validated.

2 calls to drush_queue_validate()
drush_queue_list_validate in commands/core/queue.drush.inc
Validation callback for drush queue-list.
drush_queue_run_validate in commands/core/queue.drush.inc
Validation callback for drush queue-run.

File

commands/core/queue.drush.inc, line 63

Code

function drush_queue_validate($command) {
  if (drush_drupal_major_version() == 6) {
    if (!module_exists('drupal_queue')) {
      $args = array(
        '!command' => $command,
        '!dependencies' => 'drupal_queue',
      );
      return drush_set_error('DRUSH_COMMAND_DEPENDENCY_ERROR', dt('Command !command needs the following modules installed/enabled to run: !dependencies.', $args));
    }
    else {
      drupal_queue_include();
    }
  }
}