You are here

function video_features_export_render in Video 7

Same name and namespace in other branches
  1. 7.2 video.features.inc \video_features_export_render()

Implementation of hook_features_export_render().

File

./video.features.inc, line 29

Code

function video_features_export_render($module_name, $data) {
  $items = array();
  foreach ($data as $key) {
    $preset = video_get_preset($key);
    unset($preset['pid']);
    $items[$key] = $preset;
  }
  $code = "  \$items = " . features_var_export($items, '  ') . ";\n";
  $code .= '  return $items;';
  return array(
    'video_default_presets' => $code,
  );
}