function encrypt_get_encryption_methods in Encrypt 7.2
Same name and namespace in other branches
- 7.3 encrypt.module \encrypt_get_encryption_methods()
Returns information for all encryption methods.
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 encryption methods.
2 calls to encrypt_get_encryption_methods()
- 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 428 - Main Encrypt Drupal File.
Code
function encrypt_get_encryption_methods($all = TRUE, $reset = FALSE) {
// Clear the plugin cache if necessary.
if ($reset) {
_encrypt_clear_plugin_cache('encryption_methods');
}
ctools_include('plugins');
$methods = ctools_get_plugins('encrypt', 'encryption_methods');
return $all ? $methods : array_filter($methods, '_encrypt_plugin_is_valid');
}