You are here

function _backup_migrate_message in Backup and Migrate 7.3

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.2 backup_migrate.module \_backup_migrate_message()

Helper function to set a Drupal message and watchdog message.

Depends on whether the module is being run interactively.

39 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
Implements hook_backup_migrate_destinations().
backup_migrate_backup_succeed in ./backup_migrate.module
Clean up when a backup operation succeeds.
backup_migrate_crud_import_form_submit in includes/crud.inc
Import a item after confirmation.

... See full list

File

./backup_migrate.module, line 1919
Backup and restore databases for Drupal.

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);
}