You are here

function context_features_api in Features 6

Implementation of hook_features_api().

File

includes/features.context.inc, line 16

Code

function context_features_api() {
  $api = array(
    'context' => array(),
  );

  // 3.x
  if (context_features_get_version() === 3) {
    $api['context'] = array(
      'api' => 'context',
      'current_version' => 3,
      'module' => 'context',
      'default_file' => FEATURES_DEFAULTS_CUSTOM,
      'default_filename' => 'context',
    );
  }

  // 2.x
  $api['context'] += array(
    'name' => 'Contexts',
    'feature_source' => TRUE,
    'default_hook' => 'context_default_contexts',
  );
  return $api;
}