You are here

function cloud_zoom_preset_features_export_render in Cloud Zoom 6

Implementation of hook_features_export_options_render().

File

./cloud_zoom.features.inc, line 50
cloud_zoom.features.inc Contains the implementions to enable Features Exportable settings

Code

function cloud_zoom_preset_features_export_render($module_name, $data) {
  $items = array();
  foreach ($data as $name) {
    $preset = cloud_zoom_get_settings($name);
    _features_sanitize($preset);
    $items[$name] = $preset;
  }
  $code = '  return ' . features_var_export($items, '  ') . ";\n";
  return array(
    'cloud_zoom_preset_info' => $code,
  );
}