You are here

function _backup_migrate_message in Backup and Migrate 7.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. 5.2 backup_migrate.module \_backup_migrate_message()
  4. 6.3 backup_migrate.module \_backup_migrate_message()
  5. 6.2 backup_migrate.module \_backup_migrate_message()
  6. 7.3 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.

32 calls to _backup_migrate_message()
backup_file::open in includes/files.inc
Open a file for reading or writing.
backup_migrate_backup_fail in ./backup_migrate.module
Clean up when a backup operation fails.
backup_migrate_backup_migrate_destinations in includes/destinations.inc
Implementation of hook_backup_migrate_destinations().
backup_migrate_backup_succeed in ./backup_migrate.module
Clean up when a backup operation suceeds.
backup_migrate_destination_db::restore_from_file in includes/destinations.db.inc
Restore to this source.

... See full list

File

./backup_migrate.module, line 971
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 there is a callback handler to handle the message.
  if (($callback = _backup_migrate_message_callback()) && function_exists($callback)) {
    $callback($message, $replace, $type);
  }

  // Store the message in case it's needed (for the status notification filter for example).
  _backup_migrate_messages($message, $replace, $type);
}