public static function EncryptFAPITest::variableGet in Encrypt Form API 7.2
Gets a variable.
1 call to EncryptFAPITest::variableGet()
- EncryptFAPITest::testEncryption in ./
encryptfapi.test - Tests #encrypt property on all supported form element types.
File
- ./
encryptfapi.test, line 45 - Tests for encrypt.module
Class
- EncryptFAPITest
- Test basic encryption and decryption.
Code
public static function variableGet($variable_name, $test_type) {
if ($test_type == 'nested') {
$variable = variable_get("{$variable_name}_container", array());
$variable = isset($variable[$variable_name]) ? $variable[$variable_name] : '';
}
else {
$variable = variable_get($variable_name, '');
}
return $variable;
}