You are here

public static function MigrationBase::decrypt in Migrate 7.2

Decrypt an incoming value.

Parameters

string $value:

Return value

string The encrypted value

1 call to MigrationBase::decrypt()
MigrationBase::decryptArguments in includes/base.inc
Make sure any arguments we want to be decrypted get decrypted.

File

includes/base.inc, line 1318
Defines the base class for migration processes.

Class

MigrationBase
The base class for all objects representing distinct steps in a migration process. Most commonly these will be Migration objects which actually import data from a source into a Drupal destination, but by deriving classes directly from MigrationBase…

Code

public static function decrypt($value) {
  if (module_exists('encrypt')) {
    $value = decrypt($value);
  }
  else {
    if (self::$showEncryptionWarning) {
      MigrationBase::displayMessage(t('Encryption of secure migration information is not supported. Ensure the <a href="@encrypt">Encrypt module</a> is installed for this functionality.', array(
        '@encrypt' => 'http://drupal.org/project/encrypt',
      )), 'warning');
      self::$showEncryptionWarning = FALSE;
    }
  }
  return $value;
}