You are here

function _backup_migrate_message in Backup and Migrate 5.2

Same name and namespace in other branches
  1. 8.2 backup_migrate.module \_backup_migrate_message()
  2. 8.3 backup_migrate.module \_backup_migrate_message()
  3. 6.3 backup_migrate.module \_backup_migrate_message()
  4. 6.2 backup_migrate.module \_backup_migrate_message()
  5. 7.3 backup_migrate.module \_backup_migrate_message()
  6. 7.2 backup_migrate.module \_backup_migrate_message()

Helper function to set a drupal message and watchdog message depending on whether the module is being run interactively.

13 calls to _backup_migrate_message()
backup_migrate_destination_delete_destination in includes/destinations.inc
Delete a destination from the database.
backup_migrate_destination_save_destination in includes/destinations.inc
Save an existing destination, or create a new one with the given values.
backup_migrate_file_compress in includes/files.inc
Compress a file with the given settings. Also updates settings to reflect new file mime and file extension.
backup_migrate_file_decompress in includes/files.inc
Decompress a file with the given settings. Also updates settings to reflect new file mime and file extension.
backup_migrate_perform_backup in ./backup_migrate.module
Perform a backup with the given settings.

... See full list

File

./backup_migrate.module, line 718
Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (e.g. cache_*)

Code

function _backup_migrate_message($message, $replace = array(), $type = 'status') {

  // Only set a message if the module is being run interactively
  if (_backup_migrate_interactive()) {
    drupal_set_message(t($message, $replace), $type);
  }
  watchdog('backup_migrate', t($message, $replace), $type == 'error' ? WATCHDOG_ERROR : WATCHDOG_NOTICE);
}