You are here

function wysiwyg_template_export_form in Wysiwyg API template plugin 7.2

Generate a form for exporting a template.

1 string reference to 'wysiwyg_template_export_form'
wysiwyg_template_menu in ./wysiwyg_template.module
Implementation of hook_menu().

File

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

Code

function wysiwyg_template_export_form($form, &$form_state, $template) {
  drupal_set_title(check_plain($template['title']));
  $code = wysiwyg_template_export_get_code($template);
  $lines = substr_count($code, "\n") + 1;
  $form['export'] = array(
    '#title' => t('Export data'),
    '#type' => 'textarea',
    '#value' => $code,
    '#rows' => $lines,
    '#description' => t('Copy the export text and paste it into another site using the import function.'),
  );
  return $form;
}