You are here

public static function BearerTokenInfos::clear in Backup and Migrate Dropbox 7.3

Removes the bearer token for the current Dropbox destination.

Parameters

string $id: The id (machine name) for the current Dropbox destination.

File

./backup_migrate_dropbox.dropbox_api.inc, line 905

Class

BearerTokenInfos
Class BearerTokenInfos manages the bearer tokens.

Code

public static function clear($id) {
  $bearer_tokens = BearerTokenInfos::get_all();
  unset($bearer_tokens[$id]);
  variable_set('backup_migrate_dropbox_bearer_tokens', json_encode($bearer_tokens));
}