function globallink_config_features_export in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.7 globallink.features.inc \globallink_config_features_export()
- 7.6 globallink.features.inc \globallink_config_features_export()
Implementation of hook_features_export [component hook]
This is a component hook, rather then a module hook, therefore this is the callback from hook_features_api which relates to the specific component we are looking to export. When a specific instance of the component we are looking to export is selected, this will include the necessariy item, plus any dependencies into our export array.
Parameters
array $data: this is the machine name for the component in question
array &$export: array of all components to be exported
string $module_name: The name of the feature module to be generated.
Return value
array The pipe array of further processors that should be called
File
- ./
globallink.features.inc, line 77 - Provides Features integration for the GlobalLink module to export settings and field configurations.
Code
function globallink_config_features_export($data, &$export, $module_name = '') {
$export['dependencies']['globallink'] = 'globallink';
foreach ($data as $component) {
$export['features']['globallink_config'][$component] = $component;
}
return array();
}