diff --git data_ui/data_ui.admin.inc data_ui/data_ui.admin.inc
index b86a90c..1ee120a 100644
--- data_ui/data_ui.admin.inc
+++ data_ui/data_ui.admin.inc
@@ -1039,3 +1039,31 @@ function _data_ui_get_join($join, $field) {
   }
   return FALSE;
 }
+
+/**
+ * Simple form to print the exported hook_views_data() code.
+ */
+function data_ui_views_export_form(&$form_state, $table) {
+  // Get the path to the data.views.inc file, and load it
+  $codepath = module_invoke('data', 'views_api');
+  include_once $codepath['path'] . '/data.views.inc';
+
+  // Get the array from hook_views_data implemented in data
+  $raw_export = module_invoke('data', 'views_data');
+
+  // Generate the code
+  //@TODO: format the generated code, to be compliant with coding standards.
+  $raw_export = $raw_export[$table->get('name')];
+  $raw_export = '$data[' . "'" . $table->get('name') . "'] = " . var_export($raw_export, true) . ";";
+  $code = '$data = array();' . "\n" . $raw_export . "\n\nreturn " . '$data;';
+  $lines = substr_count($code, "\n");
+
+  // Generate the form
+  $form['code'] = array(
+    '#type' => 'textarea',
+    '#title' => t('Data UI generated code for hook_views_data() implementation'),
+    '#default_value' => $code,
+    '#rows' => $lines + 1,
+  );
+  return $form;
+}
diff --git data_ui/data_ui.module data_ui/data_ui.module
index a0a7b42..005a10f 100644
--- data_ui/data_ui.module
+++ data_ui/data_ui.module
@@ -134,6 +134,15 @@ function data_ui_menu() {
       'access arguments' => array('administer data tables'),
       'type' => MENU_LOCAL_TASK,
     );
+    $items['admin/build/data/edit/%data_ui_table/views-export'] = array(
+      'title' => 'Export views integration',
+      'description' => 'Export integration code for hook_views_data().',
+      'page callback' => 'drupal_get_form',
+      'page arguments' => array('data_ui_views_export_form', 4),
+      'file' => 'data_ui.admin.inc',
+      'access arguments' => array('administer data tables'),
+      'type' => MENU_LOCAL_TASK,
+    );
   }
   if (module_exists('devel')) {
     $items['admin/build/data/edit/%data_ui_table/view-schema'] = array(
