You are here

function _key_plugin_process in Key 7.3

Callback function to process key plugins.

Parameters

array $plugin: A key plugin.

array $info: Information about the plugin.

1 string reference to '_key_plugin_process'
key_ctools_plugin_type in ./key.module
Implements hook_ctools_plugin_type().

File

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

Code

function _key_plugin_process(&$plugin, $info) {

  // Check dependencies and attach any errors to the plugin.
  if ($dependency_function = ctools_plugin_get_function($plugin, 'dependency callback')) {
    $plugin['dependency errors'] = call_user_func($dependency_function);
  }
}