function _key_plugin_is_valid in Key 7
Same name and namespace in other branches
- 7.3 key.module \_key_plugin_is_valid()
- 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.
2 string references to '_key_plugin_is_valid'
- key_get_providers in ./
key.module - Gets information about all key providers.
- key_get_types in ./
key.module - Gets information about all key types.
File
- ./
key.module, line 727 - 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;
}
}