You are here

function _key_plugin_is_valid in Key 7.2

Same name and namespace in other branches
  1. 7.3 key.module \_key_plugin_is_valid()
  2. 7 key.module \_key_plugin_is_valid()

Determine if a key provider plugin is valid.

Parameters

array $plugin: The plugin to check.

Return value

bool Whether or not the plugin is valid.

1 string reference to '_key_plugin_is_valid'
key_get_providers in ./key.module
Gets information about all key providers.

File

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

Code

function _key_plugin_is_valid($plugin) {
  if (empty($plugin['dependency errors'])) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}