function blockgroup_features_export_render in Block Group 7
Same name and namespace in other branches
- 7.2 blockgroup.features.inc \blockgroup_features_export_render()
Implements [component]_features_export_render().
File
- ./
blockgroup.features.inc, line 50 - Features integration for Block Group module.
Code
function blockgroup_features_export_render($module, $data) {
$blockgroups = blockgroup_list();
$code = array();
foreach ($data as $delta) {
if (isset($blockgroups[$delta])) {
$code[$delta] = $blockgroups[$delta];
}
}
$code = " return " . features_var_export($code, ' ') . ";";
return array(
'default_blockgroups' => $code,
);
}