You are here

function _backup_migrate_block_view_quick_backup in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.3 backup_migrate.module \_backup_migrate_block_view_quick_backup()
  2. 6.3 backup_migrate.module \_backup_migrate_block_view_quick_backup()

Quick Backup block.

File

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

Code

function _backup_migrate_block_view_quick_backup() {
  if (user_access('access backup and migrate') && user_access('perform backup') && $_GET['q'] != BACKUP_MIGRATE_MENU_PATH) {
    drupal_add_css(drupal_get_path('module', 'backup_migrate') . '/backup_migrate.css');

    // Messages should be sent to the browser.
    _backup_migrate_message_callback('_backup_migrate_message_browser');
    return array(
      'subject' => t('Quick Backup'),
      'content' => drupal_get_form('backup_migrate_ui_manual_quick_backup_form', FALSE),
    );
  }
  return array();
}