function clients_drupal_decrypt in Web Service Clients 6.2
Same name and namespace in other branches
- 6 backends/clients_drupal/clients_drupal.module \clients_drupal_decrypt()
- 7.3 connections/clients_drupal/clients_drupal.module \clients_drupal_decrypt()
- 7 backends/clients_drupal/clients_drupal.module \clients_drupal_decrypt()
- 7.2 connections/clients_drupal/clients_drupal.module \clients_drupal_decrypt()
Decrypt a value with the chosen encryption method.
1 call to clients_drupal_decrypt()
- clients_connection_drupal_services::__construct in connections/clients_drupal/ clients_drupal.inc 
- Constructor method.
File
- connections/clients_drupal/ clients_drupal.module, line 107 
- Provides connection types for Clients module that connect to remote Drupal sites running Services module.
Code
function clients_drupal_decrypt($val) {
  $encryption_method = variable_get('clients_drupal_encryption_method', 'no_encryption');
  if ($encryption_method == 'no_encryption') {
    return $val;
  }
  else {
    return module_invoke($encryption_method, 'clients_drupal_decrypt', $val);
  }
}