You are here

function nodesquirrel_check_secret_key in Backup and Migrate 6.2

Same name and namespace in other branches
  1. 6.3 includes/destinations.nodesquirrel.inc \nodesquirrel_check_secret_key()
  2. 7.2 includes/destinations.nodesquirrel.inc \nodesquirrel_check_secret_key()

Check that a nodesquirel key is valid.

1 call to nodesquirrel_check_secret_key()
nodesquirrel_settings in includes/destinations.nodesquirrel.inc
NodeSquirrel settings form.

File

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

Code

function nodesquirrel_check_secret_key($secret_key) {
  if ($destination = nodesquirrel_get_destination($secret_key)) {
    if ($destination
      ->confirm_destination()) {
      return $destination;
    }
  }
  return FALSE;
}