You are here

function wysiwyg_template_import_form_submit in Wysiwyg API template plugin 7.2

Form submit. Import the template.

File

./wysiwyg_template.admin.inc, line 388
Administrative page callbacks for the Wysiwyg Template module.

Code

function wysiwyg_template_import_form_submit($form, &$form_state) {
  if (!empty($form_state['input']['import'])) {
    wysiwyg_template_import_from_code($form_state['input']['import']);
    $form_state['redirect'] = 'admin/config/content/wysiwyg-templates';
  }
  else {
    form_set_error('import', '$template');
  }
}