You are here

function drush_revision_scheduler_process_validate in Revision scheduler 7

Implements drush_hook_COMMAND_validate().

File

./revision_scheduler.drush.inc, line 26
Drush integration for the Revision Scheduler module.

Code

function drush_revision_scheduler_process_validate() {
  if (!variable_get('revision_scheduler_disable_cron', FALSE) && !lock_may_be_available('cron')) {
    return drush_set_error('CRON_RUNNING', dt('Blocked while cron is currently running.'));
  }
}