function drush_exif_list in Exif 8
Same name and namespace in other branches
- 8.2 exif.drush.inc \drush_exif_list()
- 7 exif.drush.inc \drush_exif_list()
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 70 - Drush extension allowing to run some tasks related to exif.
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');
}
}