You are here

function bueditor_export_text in BUEditor 6.2

Same name and namespace in other branches
  1. 7 admin/bueditor.admin.inc \bueditor_export_text()

Sends the text to the client.

2 calls to bueditor_export_text()
bueditor_eop_export in admin/bueditor.admin.inc
Editor export operation. Export the editor as text.
bueditor_export_buttons in admin/bueditor.admin.inc
Export buttons using var_export. The genarated code can also be imported as an editor.

File

admin/bueditor.admin.inc, line 909

Code

function bueditor_export_text($text, $filename) {
  drupal_set_header('Content-type: text/plain; charset=utf-8');
  drupal_set_header('Content-Disposition: attachment; filename=' . $filename);
  print $text;
  exit;
}