You are here

function _backup_migrate_message_log in Backup and Migrate 7.3

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

Logs a message if we are in a non-interactive mode such as a cron run.

2 calls to _backup_migrate_message_log()
_backup_migrate_message_browser in ./backup_migrate.module
Sends a message to the browser.
_backup_migrate_message_drush in includes/backup_migrate.drush.inc
Send a message to the drush log.
2 string references to '_backup_migrate_message_log'
backup_migrate_cron in ./backup_migrate.module
Implements hook_cron().
backup_migrate_menu_callback in ./backup_migrate.module
A menu callback helper. Handles file includes and interactivity setting.

File

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

Code

function _backup_migrate_message_log($message, $replace, $type) {

  // We only want to log the errors or successful completions.
  if (in_array($type, array(
    'error',
    'success',
  ))) {
    watchdog('backup_migrate', $message, $replace, $type == 'error' ? WATCHDOG_ERROR : WATCHDOG_NOTICE);
  }
}