function drush_user_abort

8.0.x drush.inc drush_user_abort($msg = NULL)
6.x drush.inc drush_user_abort($msg = NULL)
7.x drush.inc drush_user_abort($msg = NULL)
4.x drush.inc drush_user_abort($msg = NULL)
5.x drush.inc drush_user_abort($msg = NULL)
master drush.inc drush_user_abort($msg = NULL)

Exit due to user declining a confirmation prompt.

Usage: return drush_user_abort();

Related topics

34 calls to drush_user_abort()
drush_cache_command_clear in commands/core/cache.drush.inc
Command callback for drush cache-clear.
drush_config_edit in commands/core/config.drush.inc
Edit command callback.
drush_config_export in commands/core/config.drush.inc
Command callback: Export config to specified directory (usually sync).
drush_config_import in commands/core/config.drush.inc
Command callback. Import from specified config directory (defaults to sync).
drush_core_config in commands/core/core.drush.inc
Command callback. Edit drushrc and alias files.

... See full list

File

includes/drush.inc, line 1583
The drush API implementation and helpers.

Code

function drush_user_abort($msg = NULL) {
  drush_set_context('DRUSH_USER_ABORT', TRUE);
  drush_set_context('DRUSH_EXIT_CODE', DRUSH_EXITCODE_USER_ABORT);
  drush_log($msg ? $msg : dt('Cancelled.'), LogLevel::CANCEL);
  return FALSE;
}