You are here

function filefield_paths_drush_command in File (Field) Paths 7

Same name and namespace in other branches
  1. 8 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 = array();
  $items['ffp-update'] = array(
    'description' => 'Retroactively updates all File (Field) Paths of a chosen field instance.',
    'arguments' => array(
      'entity_type' => 'Entity type.',
      'bundle_name' => 'Bundle name.',
      'field_name' => 'Field name.',
    ),
    'options' => array(
      'all' => 'Retroactively update all File (Field) Paths.',
    ),
    'examples' => array(
      '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' => array(
      'ffpu',
    ),
  );
  return $items;
}