You are here

function drush_uuid_create_missing in Universally Unique IDentifier 6

Same name and namespace in other branches
  1. 7 uuid.drush.inc \drush_uuid_create_missing()

Drush command callback.

File

./uuid.drush.inc, line 36
Drush implementation for the uuid module.

Code

function drush_uuid_create_missing() {
  if (!drush_confirm(dt('Are you sure?'))) {
    return drush_user_abort();
  }
  module_load_include('inc', 'uuid', 'uuid.admin');
  if ($args = func_get_args()) {
    $validate_result = _uuid_validate_specified_types($args);
    if (!$validate_result[0]) {
      drush_log(dt($validate_result[1]), 'error');
      return;
    }
  }
  drush_log(dt('Beginning bulk creation of UUIDs.'), 'ok');
  uuid_sync($args);
}