You are here

function hansel_export_dot_form_submit in Hansel breadcrumbs 7

Same name and namespace in other branches
  1. 8 export/hansel_export.module \hansel_export_dot_form_submit()

Form submit handler. Provides the dot export as a download.

File

export/hansel_export.module, line 90

Code

function hansel_export_dot_form_submit($form, &$form_state) {
  header('Content-Type: text/vnd.graphviz');
  header('Content-Disposition: attachment; filename="hansel.dot"');
  print hansel_export_dot();
  module_invoke_all('exit');
  exit;
}