function wysiwyg_template_features_export_render in Wysiwyg API template plugin 7.2
Implements hook_features_export_render().
File
- ./
wysiwyg_template.features.inc, line 33 - Additional hooks for features support.
Code
function wysiwyg_template_features_export_render($module_name, $data, $export = NULL) {
$code = array();
$code[] = ' $templates = array();';
foreach ($data as $name) {
$code[] = " \$templates['{$name}'] = " . features_var_export(wysiwyg_template_load_template($name), ' ') . ";";
}
$code[] = " return \$templates;";
$code = implode("\n", $code);
return array(
'wysiwyg_template_default_templates' => $code,
);
}