You are here

function computed_field_tools_drush_command in Computed Field Tools 6

Same name and namespace in other branches
  1. 7 computed_field_tools.drush.inc \computed_field_tools_drush_command()

Implements hook_drush_command().

File

./computed_field_tools.drush.inc, line 10
Computed Field Tools module drush integration.

Code

function computed_field_tools_drush_command() {
  $items = array();
  $items['computed-field-tools-recompute'] = array(
    'description' => 'Recompute all instances of a given computed field.',
    'drupal dependencies' => array(
      'computed_field_tools',
    ),
    'aliases' => array(
      'cft-r',
    ),
    'arguments' => array(
      'field_name' => 'Name of field to recomputed.',
    ),
    'options' => array(
      '--silent' => 'Suppress output',
    ),
  );
  return $items;
}