You are here

function key_get_types in Key 7

Gets information about all key types.

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 types.

1 call to key_get_types()
key_get_types_as_options in ./key.module
Gets all key types as options, for use in forms.

File

./key.module, line 235
Provides the ability to manage keys, which can be used by other modules.

Code

function key_get_types($all = TRUE, $reset = FALSE) {
  if ($reset) {
    _key_clear_plugin_cache('key_type');
  }
  ctools_include('plugins');
  $types = ctools_get_plugins('key', 'key_type');
  return $all ? $types : array_filter($types, '_key_plugin_is_valid');
}