function computed_field_tools_drush_command in Computed Field Tools 7
Same name and namespace in other branches
- 6 computed_field_tools.drush.inc \computed_field_tools_drush_command()
Implements hook_drush_command().
File
- ./
computed_field_tools.drush.inc, line 11 - Command line utility for processing computed fields.
Code
function computed_field_tools_drush_command() {
$items = array();
$items['cft-recompute'] = array(
'callback' => 'computed_field_tools_drush_recompute',
'description' => dt('Re-compute computed field'),
'arguments' => array(
'field_name_to_recompute' => "computed_field name to process.",
),
'options' => array(
'limit' => 'Use "--limit=10" (Integer) to limit the number of entities to process.',
'output' => 'Use "--output=0" (0/1) to disable any print outs while processing the fields.',
),
'aliases' => array(
'cftr',
),
);
return $items;
}