You are here

function classified_drush_command in Classified Ads 6.3

Same name and namespace in other branches
  1. 7.3 classified.drush.inc \classified_drush_command()

Implements hook_drush_command().

Return value

array Drush command description array.

File

./classified.drush.inc, line 44
Drush plugin for classified.module

Code

function classified_drush_command() {
  $items = array();
  $items['classified-purge'] = array(
    'description' => "Purge nodes past their expiration time + grace period",
    'aliases' => array(
      'cl-p',
    ),
  );
  $items['classified-expire'] = array(
    'description' => "Expire nodes past their expiration time",
    'aliases' => array(
      'cl-e',
    ),
  );
  $items['classified-notify'] = array(
    'description' => "Notify about node litefime stages",
    'aliases' => array(
      'cl-n',
    ),
    'arguments' => array(
      'kind' => 'half-life|pre-expire|purge',
    ),
  );
  foreach ($items as &$item) {
    $item['drupal dependencies'] = array(
      'classified',
    );
  }
  return $items;
}