You are here

function _backup_migrate_messages in Backup and Migrate 7.3

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

Helper function to set a Drupal message and watchdog message.

Depends on whether the module is being run interactively.

2 calls to _backup_migrate_messages()
backup_migrate_filter_statusnotify::get_messages in includes/filters.statusnotify.inc
Render the messages and errors for the email.
_backup_migrate_message in ./backup_migrate.module
Helper function to set a Drupal message and watchdog message.

File

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

Code

function _backup_migrate_messages($message = NULL, $replace = array(), $type = 'status') {
  static $messages = array();
  if ($message) {
    $messages[] = array(
      'message' => $message,
      'replace' => $replace,
      'type' => $type,
    );
  }
  return $messages;
}