function features_export_render_hooks in Features 7
Same name and namespace in other branches
- 6 features.export.inc \features_export_render_hooks()
- 7.2 features.export.inc \features_export_render_hooks()
Generate an array of hooks and their raw code.
1 call to features_export_render_hooks()
- features_export_render in ./
features.export.inc - Render feature export into an array representing its files.
File
- ./
features.export.inc, line 198
Code
function features_export_render_hooks($export, $module_name, $reset = FALSE) {
features_include();
$code = array();
// Sort components to keep exported code consistent
ksort($export['features']);
foreach ($export['features'] as $component => $data) {
if (!empty($data)) {
// Sort the items so that we don't generate different exports based on order
asort($data);
if (features_hook($component, 'features_export_render')) {
$hooks = features_invoke($component, 'features_export_render', $module_name, $data, $export);
$code[$component] = $hooks;
}
}
}
return $code;
}