You are here

function backup_migrate_destination_nodesquirrel::before_backup_form in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.3 includes/destinations.nodesquirrel.inc \backup_migrate_destination_nodesquirrel::before_backup_form()

Returns a form to be completed before saving to the destination can be complete.

File

includes/destinations.nodesquirrel.inc, line 364
Functions to handle the NodeSquirrel backup destination.

Class

backup_migrate_destination_nodesquirrel
A destination for sending database backups to the NodeSquirel backup service.

Code

function before_backup_form($settings) {
  $form = array();
  $key = $this
    ->settings('secret_key');
  if (empty($key)) {
    $form += backup_migrate_nodesquirrel_info_form();
    $form += backup_migrate_nodesquirrel_credentials_settings_form();
  }
  return $form;
}