You are here

function drush_exif_update in Exif 7

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

Drush callback;

File

./exif.drush.inc, line 68

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']);
    }
    else {
      if ($type['entity'] == 'file') {
        $count = __drush_exif_file_update($type['type']);
      }
    }
  }
}