You are here

function popupmenu_features_export_render in Popup 8

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

Implementation of [component]_features_export_render()

File

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

Code

function popupmenu_features_export_render($module_name, $data, $export = NULL) {
  module_load_include('inc', 'popup_menu', 'includes/popup_menu.util');
  $settings = _popup_menu_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(
    'popupmenu_defaults' => $code,
  );
}