You are here

function key_features_api in Key 7

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

Implements hook_features_api().

Define the components that we want to make exportable, in this case key configurations and integrations.

File

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

Code

function key_features_api() {
  return array(
    'key_config' => array(
      'name' => 'Keys',
      'file' => drupal_get_path('module', 'key') . '/includes/key_config.features.inc',
      'default_hook' => 'key_default_configs',
      'feature_source' => TRUE,
    ),
    'key_integration' => array(
      'name' => 'Key Integration',
      'file' => drupal_get_path('module', 'key') . '/includes/key_integration.features.inc',
      'default_hook' => 'key_default_integrations',
      'feature_source' => TRUE,
    ),
  );
}