You are here

function filefield_paths_features_api in File (Field) Paths 6

Implements hook_features_api().

Main info hook that features uses to determine what components are provided

The 'component' for this module is named 'filefield_paths' not just 'filefield_paths' to follow recommended practice documented in features.api

We export individual filefield_paths instances, although seldom on their own, usually as part of a bigger package. When a content type or cck field is being exported, these settings come along for the ride.

File

modules/features.inc, line 19
Features module integration.

Code

function filefield_paths_features_api() {
  return array(
    'filefield_paths' => array(
      'name' => t('FileField Paths'),
      'default_hook' => 'default_filefield_paths',
      'feature_source' => TRUE,
      'default_file' => FEATURES_DEFAULTS_INCLUDED,
    ),
  );
}