You are here

function popupblock_features_export in Popup 7

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