function contemplate_features_export_render in Content Templates (Contemplate) 6
Implementation of hook_features_export_render().
File
- includes/
contemplate.features.inc, line 34
Code
function contemplate_features_export_render($module_name, $data) {
$items = array();
foreach ($data as $key) {
$template = contemplate_get_template($key);
$items[$key] = $template;
}
$code = " \$items = " . features_var_export($items, ' ') . ";\n";
$code .= ' return $items;';
return array(
'contemplate_templates' => $code,
);
}