function encrypt_get_key_providers in Encrypt 7.3
Same name and namespace in other branches
- 7.2 encrypt.module \encrypt_get_key_providers()
Returns info for all encryption key providers.
Parameters
bool $all: A flag indicating whether to include plugins with unmet dependencies.
bool $reset: A flag indicating whether to clear the plugin cache. Otherwise, this function may return stale data if plugin properties have changed.
Return value
array An array of arrays with information about all available key providers.
2 calls to encrypt_get_key_providers()
- encrypt_configs_list in includes/
encrypt.admin.inc - Menu callback; displays the list of configurations.
- encrypt_config_form in includes/
encrypt.admin.inc - Form constructor for the configuration edit form.
File
- ./
encrypt.module, line 467 - Main Encrypt Drupal File
Code
function encrypt_get_key_providers($all = TRUE, $reset = FALSE) {
if ($reset) {
_encrypt_clear_plugin_cache('key_providers');
}
ctools_include('plugins');
$providers = ctools_get_plugins('encrypt', 'key_providers');
return $all ? $providers : array_filter($providers, '_encrypt_plugin_is_valid');
}