You are here

function _backup_migrate_message_drush in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 includes/backup_migrate.drush.inc \_backup_migrate_message_drush()
  2. 8.3 includes/backup_migrate.drush.inc \_backup_migrate_message_drush()
  3. 6.3 includes/backup_migrate.drush.inc \_backup_migrate_message_drush()
  4. 6.2 includes/backup_migrate.drush.inc \_backup_migrate_message_drush()
  5. 7.2 includes/backup_migrate.drush.inc \_backup_migrate_message_drush()

Send a message to the drush log.

4 string references to '_backup_migrate_message_drush'
backup_migrate_drush_backup in includes/backup_migrate.drush.inc
Backup the default database.
backup_migrate_drush_destination_files in includes/backup_migrate.drush.inc
Get a list of files in a given destination.
backup_migrate_drush_restore in includes/backup_migrate.drush.inc
Restore to the default database.
backup_migrate_drush_schedule in includes/backup_migrate.drush.inc
Backup using schedule.

File

includes/backup_migrate.drush.inc, line 326
Drush commands for backup and migrate.

Code

function _backup_migrate_message_drush($message, $replace, $type) {

  // If this is an error use drush_set_error to notify the end user and set the
  // exit status.
  if ($type == 'error') {
    drush_set_error(strip_tags(dt($message, $replace)));
  }
  else {

    // Use drush_log to display to the user.
    drush_log(strip_tags(dt($message, $replace)), str_replace('status', 'notice', $type));
  }

  // Watchdog log the message as well for admins.
  _backup_migrate_message_log($message, $replace, $type);
}