You are here

function key_get_providers in Key 7.2

Same name and namespace in other branches
  1. 7 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_config_form in includes/key.admin.inc
Form constructor for the key configuration edit form.
key_get_providers_as_options in ./key.module
Gets all key providers as options, for use in forms.

File

./key.module, line 234
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');
}