You are here

function webform_scheduled_tasks_drush_command in Webform Scheduled Tasks 8

Implements hook_drush_command().

File

./webform_scheduled_tasks.drush.inc, line 11
Contains cqc_webform_question_metadata.module.

Code

function webform_scheduled_tasks_drush_command() {
  $items = [];
  $items['webform-scheduled-tasks'] = [
    'aliases' => [
      'wfst',
    ],
    'description' => 'Performs the Webform Scheduled Tasks',
    'arguments' => [
      'arg' => 'Gets the date of the last run',
    ],
    'drupal dependencies' => [
      'webform_scheduled_tasks',
    ],
    'examples' => [
      'drush wfst' => 'Runs the Webform Scheduled Tasks and updates the last "
      . "run date.',
      'drush wfst last-run' => 'Returns the date and time of the last run.',
    ],
  ];
  return $items;
}