You are here

function popupblock_features_export_options in Popup 7

Same name and namespace in other branches
  1. 8 modules/popup_block/includes/popup_block.features.inc \popupblock_features_export_options()
  2. 7.x modules/popup_block/includes/popup_block.features.inc \popupblock_features_export_options()
  3. 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;
}