function taxonomy_features_export_render in Features 6
Same name and namespace in other branches
- 7.2 includes/features.taxonomy.inc \taxonomy_features_export_render()
- 7 includes/features.taxonomy.inc \taxonomy_features_export_render()
Implementation of hook_features_export_render().
File
- includes/
features.taxonomy.inc, line 54
Code
function taxonomy_features_export_render($module, $data) {
$vocabularies = _taxonomy_features_get_vocabularies();
$code = array();
foreach ($data as $machine_name) {
foreach ($vocabularies as $k => $v) {
if ($k == $machine_name) {
unset($v->vid);
$code[$machine_name] = $v;
}
}
}
$code = " return " . features_var_export($code, ' ') . ";";
return array(
'taxonomy_default_vocabularies' => $code,
);
}