function _backup_migrate_message in Backup and Migrate 8.2
Same name and namespace in other branches
- 8.3 backup_migrate.module \_backup_migrate_message()
- 5.2 backup_migrate.module \_backup_migrate_message()
- 6.3 backup_migrate.module \_backup_migrate_message()
- 6.2 backup_migrate.module \_backup_migrate_message()
- 7.3 backup_migrate.module \_backup_migrate_message()
- 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.
30 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_db_restore in includes/
db.inc - Restore from a previously backed up files. File must be a decompressed SQL file.
File
- ./
backup_migrate.module, line 929 - 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);
}