function ds_features_export_render in Display Suite 6.3
Same name and namespace in other branches
- 6 includes/ds.features.inc \ds_features_export_render()
- 6.2 includes/ds.features.inc \ds_features_export_render()
Implementation of hook_features_export_render().
File
- includes/
ds.features.inc, line 84 - Features support.
Code
function ds_features_export_render($module = 'foo', $data) {
$return = array();
module_load_include('inc', 'ds', 'includes/ds.tools');
// Create nice build data.
$build_data = array();
foreach ($data as $ds_setting) {
$build_data[$ds_setting] = $ds_setting;
}
$export = ds_export_build($build_data);
// Display settings.
if (isset($export['ds']['settings'])) {
$return['ds_default_settings'] = ' $data = ' . ds_var_export($export['ds']['settings']) . ";\n return \$data;";
}
if (!empty($return)) {
return $return;
}
}