function wysiwyg_template_import_from_code in Wysiwyg API template plugin 7.2
Helper function to parse template import PHP code and save the template.
Parameters
$code: String with template PHP code to parse.
1 call to wysiwyg_template_import_from_code()
- wysiwyg_template_import_form_submit in ./
wysiwyg_template.admin.inc - Form submit. Import the template.
File
- ./
wysiwyg_template.admin.inc, line 404 - Administrative page callbacks for the Wysiwyg Template module.
Code
function wysiwyg_template_import_from_code($code) {
ob_start();
eval($code);
ob_end_clean();
if (!empty($template)) {
wysiwyg_template_save_template($template);
}
}