function video_features_export_render in Video 7.2
Same name and namespace in other branches
- 7 video.features.inc \video_features_export_render()
Implements hook_features_export_render().
File
- ./
video.features.inc, line 30 - Contains code to support the Features module.
Code
function video_features_export_render($module_name, $data) {
$items = array();
foreach ($data as $key) {
$preset = Preset::getPreset($key);
unset($preset['pid'], $preset['module'], $preset['overridden']);
$items[$key] = $preset;
}
$code = " \$items = " . features_var_export($items, ' ') . ";\n";
$code .= ' return $items;';
return array(
'video_default_presets' => $code,
);
}