function _backup_migrate_message_browser in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 backup_migrate.module \_backup_migrate_message_browser()
- 8.3 backup_migrate.module \_backup_migrate_message_browser()
- 6.3 backup_migrate.module \_backup_migrate_message_browser()
- 6.2 backup_migrate.module \_backup_migrate_message_browser()
- 7.2 backup_migrate.module \_backup_migrate_message_browser()
Sends a message to the browser.
The normal type of message handling for interactive use.
2 string references to '_backup_migrate_message_browser'
- backup_migrate_menu_callback in ./
backup_migrate.module - A menu callback helper. Handles file includes and interactivity setting.
- _backup_migrate_block_view_quick_backup in ./
backup_migrate.module - Quick Backup block.
File
- ./
backup_migrate.module, line 1952 - Backup and restore databases for Drupal.
Code
function _backup_migrate_message_browser($message, $replace, $type) {
// Log the message as well for admins.
_backup_migrate_message_log($message, $replace, $type);
// If there are links, we can display them in the browser.
if (!empty($replace['!links'])) {
$message .= " (!links)";
}
// Use drupal_set_message to display to the user.
drupal_set_message(t($message, $replace), str_replace('success', 'status', $type), FALSE);
}