You are here

function hansel_export_dot_form in Hansel breadcrumbs 7

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

Form providing the export to dot format.

1 string reference to 'hansel_export_dot_form'
hansel_export_menu in export/hansel_export.module
Implements hook_menu().

File

export/hansel_export.module, line 68

Code

function hansel_export_dot_form($form_state) {
  $form = array();
  $form['config'] = array(
    '#type' => 'textarea',
    '#title' => t('Hansel dot export'),
    '#description' => t('Install the !graphviz tools to render this output.', array(
      '!graphviz' => l('Graphviz', 'http://graphviz.org/'),
    )),
    '#default_value' => hansel_export_dot(),
    '#rows' => 15,
  );
  $form['download'] = array(
    '#type' => 'submit',
    '#value' => t('Download file'),
  );
  return $form;
}