You are here

function key_get_plugin in Key 7.3

Gets information about a specific key plugin of a requested type.

Parameters

string $type: The type of plugin.

string $plugin_id: The id of the plugin to get.

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 the key plugin.

21 calls to key_get_plugin()
key_configs_list in includes/key.admin.inc
Menu callback; displays the list of key configurations.
key_config_delete_confirm in includes/key.admin.inc
Menu callback to delete a key configuration.
key_config_delete_confirm_submit in includes/key.admin.inc
Submit handler for key_config_delete_confirm().
key_config_delete_confirm_validate in includes/key.admin.inc
Form validate handler for key_config_delete_confirm().
key_config_form in includes/key.admin.inc
Form constructor for the key configuration form.

... See full list

File

./key.module, line 324
Main Key functionality and hook implementations.

Code

function key_get_plugin($type, $plugin_id, $reset = FALSE) {
  if (!in_array($type, _key_get_plugin_types())) {
    return array();
  }
  ctools_include('plugins');
  return ctools_get_plugins('key', $type, $plugin_id);
}