You are here

function popupblock_features_export_render in Popup 7

Same name and namespace in other branches
  1. 8 modules/popup_block/includes/popup_block.features.inc \popupblock_features_export_render()
  2. 7.x modules/popup_block/includes/popup_block.features.inc \popupblock_features_export_render()
  3. 6.x modules/popup_block/includes/popup_block.features.inc \popupblock_features_export_render()

Implementation of [component]_features_export_render()

File

modules/popup_block/includes/popup_block.features.inc, line 53

Code

function popupblock_features_export_render($module_name, $data, $export = NULL) {
  $settings = _popup_block_settings();
  $code[] = '  return array(';
  foreach ($data as $block) {
    $format_export = features_var_export($settings[$block], '    ');
    $format_identifier = features_var_export($block);
    $code[] = "    {$format_identifier} => {$format_export},";
  }
  $code[] = '  );';
  $code = implode("\n", $code);
  return array(
    'popupblock_defaults' => $code,
  );
}