function encrypt_get_enabled_configs in Encrypt 7.3
Same name and namespace in other branches
- 7.2 encrypt.module \encrypt_get_enabled_configs()
Get enabled configurations.
Parameters
bool $reset: A flag to force the configurations to be retrieved from the database.
Return value
array An array of configurations that are enabled.
1 call to encrypt_get_enabled_configs()
- encrypt_get_enabled_configs_as_options in ./
encrypt.module - Get enabled configurations as options.
File
- ./
encrypt.module, line 258 - Main Encrypt Drupal File
Code
function encrypt_get_enabled_configs($reset = FALSE) {
static $enabled_configs = array();
if (!$enabled_configs || $reset) {
$configs = encrypt_get_configs($reset);
foreach ($configs as $key => $config) {
if ($config['enabled']) {
$enabled_configs[$key] = $config;
}
}
}
return $enabled_configs;
}