function field_features_api in Features 7.2
Same name and namespace in other branches
- 7 includes/features.field.inc \field_features_api()
Implements hook_features_api().
File
- includes/
features.field.inc, line 11 - Features integration on behalf of 'field' module.
Code
function field_features_api() {
return array(
'field' => array(
// This is deprecated by field_base and field_instance
// but retained for compatibility with older exports.
'name' => t('Fields'),
/* @see \hook_field_default_fields() */
/* @see \hook_field_default_fields_alter() */
'default_hook' => 'field_default_fields',
'default_file' => FEATURES_DEFAULTS_INCLUDED,
'feature_source' => FALSE,
),
'field_base' => array(
'name' => t('Field Bases'),
/* @see \hook_field_default_field_bases() */
/* @see \hook_field_default_field_bases_alter() */
'default_hook' => 'field_default_field_bases',
'default_file' => FEATURES_DEFAULTS_INCLUDED,
'feature_source' => TRUE,
'supersedes' => 'field',
),
'field_instance' => array(
'name' => t('Field Instances'),
/* @see \hook_field_default_field_instances() */
/* @see \hook_field_default_field_instances_alter() */
'default_hook' => 'field_default_field_instances',
'default_file' => FEATURES_DEFAULTS_INCLUDED,
'feature_source' => TRUE,
'supersedes' => 'field',
),
);
}