You are here

function _key_integration_plugin_process in Key 7

Callback function to process key integration plugins.

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

File

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

Code

function _key_integration_plugin_process(&$plugin, $info) {
  $integrations = db_query("SELECT * FROM {key_integration} ORDER BY name ASC")
    ->fetchAllAssoc('name', PDO::FETCH_ASSOC);
  $name = $plugin['name'];
  if (array_key_exists($name, $integrations)) {
    if (isset($integrations[$name]['enabled'])) {
      $plugin['enabled'] = $integrations[$name]['enabled'];
    }
  }
}