You are here

function backup_migrate_dropbox_update_7300 in Backup and Migrate Dropbox 7.3

Support for the new Dropbox OAuth2 with PKCE flow.

File

./backup_migrate_dropbox.install, line 27
Contains install and update functions for backup migrate dropbox.

Code

function backup_migrate_dropbox_update_7300() {
  variable_set('backup_migrate_dropbox_app_key', '2b87l40hen5fp6x');
  variable_set('backup_migrate_dropbox_app_folder', 'DrupalBackup');
  variable_set('backup_migrate_dropbox_bearer_tokens', '{}');

  /** @noinspection HtmlUnknownTarget */
  drupal_set_message(t('Mid 2021, <a href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens#retiring-legacy-tokens">Dropbox will retire legacy tokens</a>.') . ' ' . t('The authorization part of the Backup and Migrate Dropbox module has been rewritten to use the Oauth2 method of authorizing.') . ' ' . t('You must edit all Dropbox destinations to authorize the Drupal Backup and Migrate Dropbox App to access your Dropbox account.') . ' ' . t('Please visit the !destinations_page now.', [
    '!destinations_page' => l('destinations page', 'admin/config/system/backup_migrate/settings/destination'),
  ]), 'warning');
}