You are here

function backup_migrate_destination_nodesquirrel::_get_private_key in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.3 includes/destinations.nodesquirrel.inc \backup_migrate_destination_nodesquirrel::_get_private_key()
  2. 6.2 includes/destinations.nodesquirrel.inc \backup_migrate_destination_nodesquirrel::_get_private_key()
  3. 7.2 includes/destinations.nodesquirrel.inc \backup_migrate_destination_nodesquirrel::_get_private_key()

Get the destination id or warn the user that it has not been set.

1 call to backup_migrate_destination_nodesquirrel::_get_private_key()
backup_migrate_destination_nodesquirrel::_get_hash in includes/destinations.nodesquirrel.inc
Genrate a hash with a given secret key, timestamp and random value.

File

includes/destinations.nodesquirrel.inc, line 623
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 _get_private_key($warn = TRUE) {
  list($id, $key) = $this
    ->get_user_pass();
  return $key;
}