function _backup_migrate_block_view_quick_backup in Backup and Migrate 8.3
Same name and namespace in other branches
- 6.3 backup_migrate.module \_backup_migrate_block_view_quick_backup()
- 7.3 backup_migrate.module \_backup_migrate_block_view_quick_backup()
Quick Backup block.
File
- ./
backup_migrate.module, line 394 - 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_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();
}