function popupblock_features_export_options in Popup 8
Same name and namespace in other branches
- 7 modules/popup_block/includes/popup_block.features.inc \popupblock_features_export_options()
- 7.x modules/popup_block/includes/popup_block.features.inc \popupblock_features_export_options()
- 6.x modules/popup_block/includes/popup_block.features.inc \popupblock_features_export_options()
Implementation of [component]_features_export()
File
- modules/
popup_block/ includes/ popup_block.features.inc, line 8
Code
function popupblock_features_export_options() {
$settings = _popup_block_settings();
$options = array();
foreach ($settings as $id => $block_setting) {
if ($block_setting['active']) {
$meta = explode(':', $id);
$blocks = module_invoke($meta[0], 'block');
$options[$id] = $blocks[$meta[1]]['info'];
}
}
return $options;
}