You are here

function bueditor_export_text in BUEditor 7

Same name and namespace in other branches
  1. 6.2 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 1015

Code

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