function filefield_paths_drush_command in File (Field) Paths 8
Same name and namespace in other branches
- 7 filefield_paths.drush.inc \filefield_paths_drush_command()
Implements hook_drush_command().
File
- ./
filefield_paths.drush.inc, line 11 - Drush integration.
Code
function filefield_paths_drush_command() {
$items = [];
$items['ffp-update'] = [
'description' => 'Retroactively updates all File (Field) Paths of a chosen field instance.',
'arguments' => [
'entity_type' => 'Entity type.',
'bundle_name' => 'Bundle name.',
'field_name' => 'Field name.',
],
'options' => [
'all' => 'Retroactively update all File (Field) Paths.',
],
'examples' => [
'drush ffp-update' => 'Retroactively updates the File (Field) Paths of the instances choosen via an interactive menu.',
'drush ffp-update node article field_image' => 'Retroactively updates the File (Field) Paths of all instances of the Article content types Image field.',
'drush ffp-update --all' => 'Retroactively update all File (Field) Paths.',
],
'aliases' => [
'ffpu',
],
];
return $items;
}