You are here

function _backup_migrate_message_log in Backup and Migrate 6.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.2 backup_migrate.module \_backup_migrate_message_log()
  4. 7.3 backup_migrate.module \_backup_migrate_message_log()
  5. 7.2 backup_migrate.module \_backup_migrate_message_log()

Log 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
Send a message to the browser. The normal type of message handling for interactive use.
_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
Implementation of 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 1577
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_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);
  }
}