function popupblock_features_export in Popup 8
Same name and namespace in other branches
- 7 modules/popup_block/includes/popup_block.features.inc \popupblock_features_export()
- 7.x modules/popup_block/includes/popup_block.features.inc \popupblock_features_export()
- 6.x modules/popup_block/includes/popup_block.features.inc \popupblock_features_export()
Implementation of [component]_features_export()
File
- modules/
popup_block/ includes/ popup_block.features.inc, line 30
Code
function popupblock_features_export($data, &$export, $module_name = '') {
$pipe = array();
$settings = _popup_block_settings();
$export['dependencies']['popup_block'] = 'popup_block';
foreach ($data as $instance) {
if (isset($settings[$instance]['format'])) {
$pipe['popupformat'][] = $settings[$instance]['format'];
}
$export['features']['popupblock'][$instance] = $instance;
}
return $pipe;
}