Same name and namespace in other branches
  1. 7.x-1.x exif.drush.inc \exif_drush_command() 1 comment
  2. 8.x-2.x exif.drush.inc \exif_drush_command() 1 comment

Implements hook_drush_command().

File

./exif.drush.inc, line 18

Code

function exif_drush_command() {
    $items['exif-list'] = [
        'description' => 'list entity type where exif is enabled.',
        'arguments' => [
            '$entity_type' => 'Optional. The entity manager to use (media|file|node). (all other entity manager will be ignored)',
        ],
    ];
    $items['exif-update'] = [
        'description' => 'Update all entity where exif is enabled.',
        'arguments' => [
            '$entity_type' => 'Optional. The entity manager to use (media|file|node). (all other entity manager will be ignored)',
            'type' => 'Optional. The type to update (all other type will be ignored).',
        ],
    ];
    $items['exif-import'] = [
        'description' => 'Import a directory tree in drupal using requested type.',
        'arguments' => [
            '$entity_type' => 'Required. The entity type (media|file|node) to insert photo with metadata.',
            'type' => 'Required. The type to insert photo with relative metadata.',
            'field' => 'Required. the field to insert the photo',
            'path' => 'Required. a path to a image or a directory',
        ],
    ];
    return $items;
}