You are here

function commerce_order_drush_command in Commerce Core 7

Implements hook_drush_command().

File

modules/order/commerce_order.drush.inc, line 11
Drush commands for Commerce Order.

Code

function commerce_order_drush_command() {
  $items = array();
  $items['commerce-order-update-placed-timestamp'] = array(
    'description' => 'Set the order placed timestamp to match the created timestamp.',
    'examples' => array(
      'drush commerce-order-update-placed-timestamp' => dt('Update the placed timestamp, Defaults to 1000 orders per batch run.'),
      'drush coupt 500' => dt('Update the placed timestamp, 500 orders per batch run.'),
    ),
    'arguments' => array(
      'limit' => dt("The number of orders to update per batch run. Defaults to 1000."),
    ),
    'aliases' => array(
      'coupt',
    ),
  );
  return $items;
}