function drush_usage_send

8.0.x usage.drush.inc drush_usage_send()
6.x usage.drush.inc drush_usage_send()
7.x usage.drush.inc drush_usage_send()
5.x usage.drush.inc drush_usage_send()
1 string reference to 'drush_usage_send'
usage_drush_exit in commands/core/usage.drush.inc
Log and/or send usage data to Mongolab.

File

commands/core/usage.drush.inc, line 59
Send scrubbed usage data to drush. Omits arguments and option values in order to assure that no sensitive data is shared. See http://drupal.org/node/1246738.

Code

function drush_usage_send() {
  $file = _drush_usage_get_file(TRUE);
  if ($file) {
    drush_set_option('drush_usage_send', TRUE);
    drush_set_option('drush_usage_size', 0);
    drush_print(dt('To automatically send anonymous usage data, add the following to a .drushrc.php file: $options[\'drush_usage_send\'] = TRUE;'));
  }
}