You are here

function _key_plugin_is_valid in Key 7.3

Same name and namespace in other branches
  1. 7 key.module \_key_plugin_is_valid()
  2. 7.2 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_plugins in ./key.module
Gets information about all key plugins of the requested type.

File

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

Code

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