You are here

function data_ui_export_form in Data 7

Same name and namespace in other branches
  1. 6 data_ui/data_ui.admin.inc \data_ui_export_form()

Export form.

1 string reference to 'data_ui_export_form'
data_ui_menu in data_ui/data_ui.module
Implements hook_menu().

File

data_ui/data_ui.admin.inc, line 998
Admin UI functions.

Code

function data_ui_export_form($form, &$form_state, $table) {
  $table = data_get_table($table);
  $code = data_export($table
    ->get('name'));
  $form['export'] = array(
    '#title' => t('Export table definition'),
    '#type' => 'textarea',
    '#value' => $code,
    '#rows' => substr_count($code, "\n"),
  );
  return $form;
}