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

Implements Drush callback.

List all entity types supported by this module or check an entity type is supported.

Parameters

string $entity_type: Name of the entity type to check or empty if you want all entity types.

File

./exif.drush.inc, line 71

Code

function drush_exif_list($entity_type = '') {
    $entity_types = __check_entity_type($entity_type);
    $types = __drush_exif_list_active_types($entity_types);
    drush_log(dt('listing %count content types.', [
        '%count' => count($types),
    ]), 'ok');
    foreach ($types as $type) {
        $params = [
            '%entity' => $type['entity'],
            '%type' => $type['type'],
        ];
        drush_log(dt('  * %entity, %type', $params), 'ok');
    }
}