function skinr_group_features_export_render in Skinr 8.2
Same name and namespace in other branches
- 7.2 skinr_context/skinr_context.features.inc \skinr_group_features_export_render()
Implements hook_features_export_render().
File
- skinr_context/
skinr_context.features.inc, line 79 - Implements features integration for Skinr Context.
Code
function skinr_group_features_export_render($module_name, $data, $export = NULL) {
$code = array();
// $code[] = ' $groups = array();';
// $code[] = '';
foreach ($data as $gid) {
if ($group = skinr_context_group_load($gid)) {
$code[] = skinr_context_group_export($group, ' ');
}
}
$code[] = '';
$code[] = ' return $groups;';
$code = implode("\n", $code);
return array(
'skinr_context_group_defaults' => $code,
);
}