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

Drush callback.

File

./exif.drush.inc, line 84

Code

function drush_exif_update($type = '') {
    $types = __drush_exif_list_active_types();
    drush_log(dt('Need to update %count content type.', array(
        '%count' => count($types),
    )));
    foreach ($types as $type) {
        if ($type['entity'] == 'node') {
            $count = __drush_exif_node_update($type['type']);
        }
        elseif ($type['entity'] == 'file') {
            $count = __drush_exif_file_update($type['type']);
        }
    }
}