function key_get_providers in Key 7
Same name and namespace in other branches
- 7.2 key.module \key_get_providers()
Gets information about all 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, stale data may be returned if plugin properties have changed.
Return value
array Information about all key providers.
2 calls to key_get_providers()
- key_get_providers_as_options in ./
key.module - Gets all key providers as options, for use in forms.
- key_ui_key_config_form in modules/
key_ui/ includes/ key_ui.admin.inc - Form constructor for the key configuration edit form.
File
- ./
key.module, line 172 - Provides the ability to manage keys, which can be used by other modules.
Code
function key_get_providers($all = TRUE, $reset = FALSE) {
if ($reset) {
_key_clear_plugin_cache('key_provider');
}
ctools_include('plugins');
$providers = ctools_get_plugins('key', 'key_provider');
return $all ? $providers : array_filter($providers, '_key_plugin_is_valid');
}