function uuid_features_features_api in UUID Features Integration 6
Same name and namespace in other branches
- 7 uuid_features.module \uuid_features_features_api()
Implementation of hook_features_api().
File
- ./
uuid_features.module, line 6
Code
function uuid_features_features_api() {
$components = array(
'uuid_node' => array(
'name' => t('Content'),
'features_source' => TRUE,
'default_hook' => 'uuid_features_default_content',
'default_file' => FEATURES_DEFAULTS_INCLUDED,
'file' => drupal_get_path('module', 'uuid_features') . '/includes/uuid_node.features.inc',
),
'uuid_vocabulary' => array(
'name' => t('Vocabulary'),
'default_hook' => 'uuid_features_default_vocabularies',
'default_file' => FEATURES_DEFAULTS_INCLUDED,
'file' => drupal_get_path('module', 'uuid_features') . '/includes/uuid_vocabulary.features.inc',
),
'uuid_term' => array(
'name' => t('Taxonomy Term'),
'default_hook' => 'uuid_features_default_terms',
'default_file' => FEATURES_DEFAULTS_INCLUDED,
'file' => drupal_get_path('module', 'uuid_features') . '/includes/uuid_term.features.inc',
),
);
// Depends on http://drupal.org/node/808690
if (function_exists('uuid_file_insert')) {
$components['uuid_file'] = array(
'name' => t('File'),
'default_hook' => 'uuid_features_default_files',
'default_file' => FEATURES_DEFAULTS_INCLUDED,
'file' => drupal_get_path('module', 'uuid_features') . '/includes/uuid_file.features.inc',
);
}
return $components;
}