You are here

function encrypt_get_config in Encrypt 7.3

Same name and namespace in other branches
  1. 7.2 encrypt.module \encrypt_get_config()

Get one configuration.

Parameters

bool $name: The machine name of the configuration to retrieve.

bool $reset: A flag to force the configuration to be retrieved from the database.

Return value

array An array with details for the requested configuration.

4 calls to encrypt_get_config()
EncryptConfigTest::testConfigManage in ./encrypt.test
Test configuration management.
encrypt_config_load in ./encrypt.module
Menu argument loader: loads a configuration by name.
encrypt_get_default_config in ./encrypt.module
Get the default configuration.
_encrypt_decrypt in includes/encrypt.encrypt.inc
Private internal function to Encrypt and Decrypt text.

File

./encrypt.module, line 236
Main Encrypt Drupal File

Code

function encrypt_get_config($name = NULL, $reset = FALSE) {
  $configs = encrypt_get_configs($reset);
  if (array_key_exists($name, $configs)) {
    $config = $configs[$name];
  }
  else {
    $config = NULL;
  }
  return $config;
}