function key_get_plugins in Key 7.3
Gets information about all key plugins of the requested type.
Parameters
string $type: The type of plugin.
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 plugins of the requested type.
5 calls to key_get_plugins()
- key_get_keys_by_storage_method in ./
key.module - Get keys that use the specified storage method.
- key_get_keys_by_type_group in ./
key.module - Get keys that use a key type in the specified group.
- key_get_plugins_as_options in ./
key.module - Gets all key plugins of the requested type as options, for use in forms.
- _drush_key_provider_list in drush/
key_provider_list.inc - Get a list of available key providers.
- _drush_key_type_list in drush/
key_type_list.inc - Get a list of available key types.
File
- ./
key.module, line 270 - Main Key functionality and hook implementations.
Code
function key_get_plugins($type, $all = TRUE, $reset = FALSE) {
if (!in_array($type, _key_get_plugin_types())) {
return array();
}
if ($reset) {
_key_clear_plugin_cache($type);
}
ctools_include('plugins');
$plugins = ctools_get_plugins('key', $type);
return $all ? $plugins : array_filter($plugins, '_key_plugin_is_valid');
}